Hello support,
when i try to deploy my application with survey creator included onto netlify i get this rollup error
Please can you assist me on that. Thank you
Error Log
Code[vite]: Rollup failed to resolve import "survey-creator-core/survey-creator-core.min.css" from "src/views/forms/create-questionnaire/Main.jsx".
2:57:26 PM: This is most likely unintended because it can break your application at runtime.
2:57:26 PM: If you do want to externalize this module explicitly add it to
2:57:26 PM: `build.rollupOptions.external`
2:57:26 PM: error during build:
2:57:26 PM: Error: [vite]: Rollup failed to resolve import "survey-creator-core/survey-creator-core.min.css" from "src/views/forms/create-questionnaire/Main.jsx".
2:57:26 PM: This is most likely unintended because it can break your application at runtime.
2:57:26 PM: If you do want to externalize this module explicitly add it to
2:57:26 PM: `build.rollupOptions.external`
2:57:26 PM: at onRollupWarning (/opt/build/repo/node_modules/vite/dist/node/chunks/dep-689425f3.js:41797:19)
2:57:26 PM: at onwarn (/opt/build/repo/node_modules/vite/dist/node/chunks/dep-689425f3.js:41613:13)
2:57:26 PM: at Object.onwarn (/opt/build/repo/node_modules/rollup/dist/shared/rollup.js:23216:13)
2:57:26 PM: at ModuleLoader.handleResolveId (/opt/build/repo/node_modules/rollup/dist/shared/rollup.js:22466:26)
2:57:26 PM: at /opt/build/repo/node_modules/rollup/dist/shared/rollup.js:22427:26
2:57:26 PM: at processTicksAndRejections (node:internal/process/task_queues:96:5)
Hello Alai,
Unfortunately, I don't have any knowledge about the Netlify deployment specifics. I may recommend that you check the following StackOverflow article: netlify deploy fails with error [vite]: Rollup failed to resolve import.
Please let me know if it helps.