Closed clabnet closed 1 year ago
Hello, I tried 'vite build' in your repo here and it worked just fine:
Yes, you see right. But the problem is onto my large webapp, and I cannot publish the complete source.
This is the screen running on dev mode : Here the main files :
I know : this is a problem around environment where the component is running, is there vite, rollup, dev, build, .. and maybe it goes beyond what are the boundaries of this problem, but I hope you can give me some support.
Thank you
Thanks, I still working for a stackblitz repro sample.
Hello, sorry for delay.
Here Is there the problem described above.
I have removed all my source code and maintained all packages used from my web app.
When running pnpm dev
the json editor is showing.
When running pnpm build
on console log you can see the blocking error :
error during build:
RollupError: Identifier 'NH' has already been declared
at error (file:///D:/_PROJECTS/POMINI/pomini-src/frontend/node_modules/.pnpm/rollup@3.10.0/node_modules/rollup/dist/es/shared/rollup.js:2041:30)
at Module.error (file:///D:/_PROJECTS/POMINI/pomini-src/frontend/node_modules/.pnpm/rollup@3.10.0/node_modules/rollup/dist/es/shared/rollup.js:13062:16)
at Module.tryParse (file:///D:/_PROJECTS/POMINI/pomini-src/frontend/node_modules/.pnpm/rollup@3.10.0/node_modules/rollup/dist/es/shared/rollup.js:13737:25)
at Module.setSource (file:///D:/_PROJECTS/POMINI/pomini-src/frontend/node_modules/.pnpm/rollup@3.10.0/node_modules/rollup/dist/es/shared/rollup.js:13347:39)
at ModuleLoader.addModuleSource (file:///D:/_PROJECTS/POMINI/pomini-src/frontend/node_modules/.pnpm/rollup@3.10.0/node_modules/rollup/dist/es/shared/rollup.js:22929:20)
Can be the cohesistency with Lodash package ? I don't know where to hit my head anymore. Thanks in advance.
Hello, remove this line exclude: ['**/dist/**']
in your ./vite.config.ts
and your problem solved.
There is no exclude
option according to the documentation of 'unplugin-auto-import'.
It works. You did a great job, you were very good.
Thank you for your support.
I think it deserves a star since this issue is not related to 'json-editor-vue', thanks.
Surely. I do.
Hello, my project use Vue 3.2, Vite 4.0.4, Typescript 4.9. Packages.json contain:
This is a simplified version of my component "my-json-editor" :
When I run
vite
on development mode it working fine. When I runvite build
command I have this blocking error on startup application:When I use
rollupOptions
on vite.config.tsthe build pass, but I have this other error:
I'm on loop, any help please ? Thank's