Have created library that contain component, enums and interfaces using vite and vue.
Have installed the library using npm install file:./dist/
Library appeared in nodemodule folder.
After importing specific component it throw below exception
Error: The following dependencies are imported but could not be resolved:
test-component (imported by D:/Workspace/SulekhaAppFrameWork/Sul_App_Base_V1/ViteCustomLibary/src/App.vue?id=0)
Are they installed? at file:../node_modules/vite/dist/node/chunks/dep-df561101.js:45705:23 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async file:///.../node_modules/vite/dist/node/chunks/dep-df561101.js:45114:38
Have created common library using vue and vite.
npm run build will create the library in dist folder
Have mention that dist folder in package.json ("privatelibrary":file/../dist) to install the custom library.
After executing npm install
Able to find the folder in the name of privatelibrary.
imported component from privatelibrary
Getting below error when we run the application using npm run dev
Error: The following dependencies are imported but could not be resolved:
test-component (imported by D:/Workspace/SulekhaAppFrameWork/Sul_App_Base_V1/ViteCustomLibary/src/App.vue?id=0)
Are they installed? at file:../node_modules/vite/dist/node/chunks/dep-df561101.js:45705:23 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async file:///.../node_modules/vite/dist/node/chunks/dep-df561101.js:45114:38
Related questions 1 Error: Failed to parse source for import analysis because the content contains invalid JS syntax 7 Internal server error: Cannot read property 'length' of undefined 5 Unable to use swiper/vue dependencies not found Related questions 1 Error: Failed to parse source for import analysis because the content contains invalid JS syntax 7 Internal server error: Cannot read property 'length' of undefined 5 Unable to use swiper/vue dependencies not found 0 EPERM: operation not permitted, stat 'C:\$Recycle.Bin\desktop.ini' Load 1 more related questions Show fewer related questions
Reset to default