Make src work with next

- The star in package.json matches any version
  https://docs.npmjs.com/cli/v10/configuring-npm/package-json

- VSCode is still giving errors
This commit is contained in:
Manav Rathi 2024-02-15 12:26:48 +05:30
parent 3fad0427a7
commit 7263969953
3 changed files with 8 additions and 3 deletions

View file

@ -11,7 +11,7 @@
},
"dependencies": {
"@date-io/date-fns": "^2.14.0",
"@ente-io/utils": "file:packages/utils",
"@ente-io/utils": "*",
"@mui/x-date-pickers": "^5.0.0-alpha.6",
"@sentry/nextjs": "^7.77.0",
"@stripe/stripe-js": "^1.13.2",

View file

@ -35,7 +35,12 @@ const nextConfig = {
},
},
},
transpilePackages: ['@mui/material', '@mui/system', '@mui/icons-material'],
transpilePackages: [
'@ente-io/utils',
'@mui/material',
'@mui/system',
'@mui/icons-material',
],
// Add environment variables to the JavaScript bundle. They will be
// available as `process.env.VAR_NAME` to our code.

View file

@ -3,6 +3,6 @@
"version": "0.0.0",
"private": true,
"exports": {
"hello": "./src/hello"
"./hello": "./src/hello"
}
}