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 like SvelteKit a lot but in trying to use it with other packages I always stumble upon import errors that I don't know how to solve, and even searching on the web for them gives ideas for possible solutions (like using rollup plugins) that however don't work.
The most common errors I couldn't solve are (1) module is undefined (2) require is undefined (3) process is not defined.
I sincerely do not have the faintest idea of the various kinds of modules (ESM, CJS, whatever) and the various issues in bundling javascript so I obviously find it very difficult even to understand what is going on and what kind of problems should I try to solve.
My question is: could there be a default svelte.config.js with a configuration that easily allows one to import modules without hassles or is this impossible for some tricky reason?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I like SvelteKit a lot but in trying to use it with other packages I always stumble upon import errors that I don't know how to solve, and even searching on the web for them gives ideas for possible solutions (like using rollup plugins) that however don't work.
The most common errors I couldn't solve are (1)
module is undefined
(2)require is undefined
(3)process is not defined
.I sincerely do not have the faintest idea of the various kinds of modules (ESM, CJS, whatever) and the various issues in bundling javascript so I obviously find it very difficult even to understand what is going on and what kind of problems should I try to solve.
My question is: could there be a default
svelte.config.js
with a configuration that easily allows one to import modules without hassles or is this impossible for some tricky reason?Beta Was this translation helpful? Give feedback.
All reactions