You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't seem to get Vite with react-ts running inside a Docker container.
When trying to do so, I get the following error:
error when starting dev server:
Error: EACCES: permission denied, stat '/root/.node_modules/react/jsx-dev-runtime'
at Object.statSync (node:fs:1538:3)
at isDirectory (/var/www/node_modules/resolve/lib/sync.js:31:23)
at loadNodeModulesSync (/var/www/node_modules/resolve/lib/sync.js:200:17)
at Function.resolveSync [as sync] (/var/www/node_modules/resolve/lib/sync.js:107:17)
at resolveFrom$3 (/var/www/node_modules/vite/dist/node/chunks/dep-f5552faa.js:3911:29)
at resolvePackageData (/var/www/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30046:19)
at /var/www/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30426:15
at Array.find (<anonymous>)
at tryNodeResolve (/var/www/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30425:44)
at Context.resolveId (/var/www/node_modules/vite/dist/node/chunks/dep-f5552faa.js:30257:28)
I tried to use an alias for react/jsx-dev-runtime, as described here facebook/react#20235, but this doesn't seem to work which is probably because Vite is using Rollup instead of Webpack.
### Validations
- [X] Follow our [Code of Conduct](https://github.com/vitejs/vite/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guidelines](https://github.com/vitejs/vite/blob/main/CONTRIBUTING.md).
- [X] Read the [docs](https://vitejs.dev/guide).
- [X] Check that there isn't [already an issue](https://github.com/vitejs/vite/issues) that reports the same bug to avoid creating a duplicate.
- [X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitejs/vite/discussions) or join our [Discord Chat Server](https://chat.vitejs.dev/).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
The text was updated successfully, but these errors were encountered:
Describe the bug
I can't seem to get Vite with
react-ts
running inside a Docker container.When trying to do so, I get the following error:
I tried to use an alias for
react/jsx-dev-runtime
, as described here facebook/react#20235, but this doesn't seem to work which is probably because Vite is using Rollup instead of Webpack.Reproduction
https://github.com/petervmeijgaard/vite-react-docker-example
System Info
Used Package Manager
npm
Logs
The text was updated successfully, but these errors were encountered: