Skip to content
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

Starting a built project trigger error: Cannot find module '.../.output/server/node_modules/.../index.js' imported from .../.output/server/index.mjs #177

Open
lominming opened this issue Feb 1, 2024 · 1 comment

Comments

@lominming
Copy link

Problem: I can build the project successfully (vinxi build) but cannot start the built project (vinxi start). This is blocking us from pushing to production now since we upgrade solid-start.

Context: Wasn't sure whether this is directly a Vinxi bug or a Solid-Start bug. There's a thread going on in Discord but was suggested to open an issue. @nksaraf


Description:

This is a new issue since upgrading to solid-start 0.4.0 (beta2)

Build works vinxi build but starting the built project vinxi start will fail with this error:

Cannot find module '.../.output/server/node_modules/drizzle-orm/postgres-js/index.js' imported from .../.output/server/index.mjs


The .output/server/index.mjs file looks like:

...
import 'drizzle-orm/postgres-js';
import 'drizzle-orm/postgres-js/migrator';
import 'drizzle-orm';
...

And inside .output/server/node_modules/drizzle-orm is missing the folder postgres-js


Node: 20.5.1

"@solidjs/start": "^0.4.10"
"solid-js": "^1.8.12"
"vinxi": "^0.1.4"
@nksaraf
Copy link
Owner

nksaraf commented Feb 2, 2024

Is there a reproduction? Ill try to add drizzle to a project and see if that shows the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants