I found some issues when trying to use siriwave with sveltekit.
It always throw this error.
export { SiriWave as default };
^^^^^^
SyntaxError: Unexpected token 'export'
at Object.compileFunction (node:vm:360:18)
at wrapSafe (node:internal/modules/cjs/loader:1055:15)
at Module._compile (node:internal/modules/cjs/loader:1090:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:170:29)
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:533:24)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I manage to get around this by changing the siriwave package.json adding this line
after that I run yarn again, and its working just fine, no problem at all.
but every time I install new packages in my project, the siriwave package.json
get override to the old one, and every time I need to re add the line to it.
type: 'modules'
I am not sure the implication of adding this line in pakcage.json to current siriwave project. but if there's no significant effect, then maybe you can consider adding this line ? (just my suggestions)
I found some issues when trying to use siriwave with sveltekit.
It always throw this error.
I manage to get around this by changing the siriwave package.json adding this line
after that I run yarn again, and its working just fine, no problem at all.
but every time I install new packages in my project, the siriwave
package.json
get override to the old one, and every time I need to re add the line to it.I am not sure the implication of adding this line in pakcage.json to current siriwave project. but if there's no significant effect, then maybe you can consider adding this line ? (just my suggestions)