-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project built with node standalone adapter tied to node_modules
#7247
Comments
node_modules
This is intentional with the |
thx bro ~! you saved me today ! |
@bluwy which are the dependencies exactly that are needed so I can start my app? I have copied |
When I introduce react, the build product has a dependency on node_modules/react-dom. have you guys come across this? Reproducible: https://github.com/shelchin2023/test-astro-ssr |
What version of
astro
are you using?2.4.5
Are you using an SSR adapter? If so, which one?
Node
What package manager are you using?
npm
What operating system are you using?
Linux
What browser are you using?
Edge
Describe the Bug
The process of building a node standalone project currently has a dependency on the specific machine used for building it. This is my
astro.config.mjs
This limitation is not allowing me to run the built project on different machines. For example I have this error when trying to run it on another machine:
Update: If I move the
node_modules
along with thedist
it seems to fix the problem.To reproduce the problem just build the project and move the dist folder to outside of the project root and then try to run it.
Link to Minimal Reproducible Example
https://github.com/drocha87/lonely-light
Participation
The text was updated successfully, but these errors were encountered: