-
Notifications
You must be signed in to change notification settings - Fork 117
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
ESM import bug #189
Comments
Thanks, good point. In the setup of Just wondering: does adding the missing Your solution in #191 will solve the issue, but will not guard against future issues. I think we need something like an eslint rule which warns us against a missing Alternatively, it may be possible to configure the build tools (Typescript, Rollup, Babel) to make sure the generated files do have a proper |
Yes, the issue is resolved after adding the missing |
Good to know you have a temporary workaround. We can indeed merge your PR as is, but need a long term solution too.
That would be great, thanks! |
I've setup the |
I am getting these errors when I try to use it in a svelte project with Webpack 5.
ERROR in ./node_modules/.pnpm/svelte-jsoneditor@0.9.2/node_modules/svelte-jsoneditor/logic/history.js 1:0-45
Module not found: Error: Can't resolve '../utils/debug' in svelte-jsoneditor/logic'
Did you mean 'debug.js'?
ERROR in ./node_modules/.pnpm/svelte-jsoneditor@0.9.2/node_modules/svelte-jsoneditor/plugins/value/components/utils/getValueClass.js 1:0-63
Module not found: Error: Can't resolve '../../../../utils/typeUtils' in /svelte-jsoneditor/plugins/value/components/utils'
Did you mean 'typeUtils.js'?
Any idea how to fix them?
Thanks in advance.
The text was updated successfully, but these errors were encountered: