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

Rollup bundling order issue #1392

Closed
birkskyum opened this issue Jan 4, 2023 · 1 comment
Closed

Rollup bundling order issue #1392

birkskyum opened this issue Jan 4, 2023 · 1 comment

Comments

@birkskyum
Copy link

Expected Behavior

I expected to be able to use mongoose, build and start the app in a clean SolidStart environment.

Actual Behavior

Adding mongoose means that I can run the dev server, but if I instead make a npm run build and npm run start to see run the production build, I'm faced with:

./dist/server.js:107060 var decimal128$3 = driver$1.get().Decimal128; ^

TypeError: Cannot read properties of null (reading 'Decimal128') at ./dist/server.js:107060:34 at ModuleJob.run (node:internal/modules/esm/module_job:193:25) at async Promise.all (index 0) at async ESMLoader.import (node:internal/modules/esm/loader:530:24)

Node.js v18.12.1

Additional Information

It seems like a similar issue appears in SvelteKit, pointing towards the common denominator which is rollup. This was also the conclusion in an Issue made in the Mongoose repo and and Issue made in the Vite repo

@birkskyum
Copy link
Author

Closing in favor of rollup/rollup#4787, as I don't know if it's a plugin issue.

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

1 participant