oh-vue-icons icon indicating copy to clipboard operation
oh-vue-icons copied to clipboard

Problem with nuxt 3

Open shu-vro opened this issue 1 year ago • 0 comments

Problem

While building my nuxt 3 project, I found this following error:

npm run build

 WARN  'oh-vue-icons/icons.js' is imported by .nuxt/dist/server/server.mjs, but could not be resolved – treating it as an external dependency


 WARN  'oh-vue-icons/icons.js' is imported by .nuxt/dist/server/_nuxt/lyrics.7f71ec39.js, but could not be resolved – treating it as an external dependency


 WARN  'oh-vue-icons/icons.js' is imported by .nuxt/dist/server/_nuxt/playing.94e5d4f1.js, but could not be resolved – treating it as an external dependency


 WARN  'oh-vue-icons/icons.js' is imported by .nuxt/dist/server/_nuxt/index.20158a89.js, but could not be resolved – treating it as an external dependency


 WARN  'oh-vue-icons/icons.js' is imported by .nuxt/dist/server/_nuxt/playlist__playlistId_.3bc6418e.js, but could not be resolved – treating it as an external dependency


 WARN  'oh-vue-icons/icons.js' is imported by .nuxt/dist/server/_nuxt/error-component.21b7dcf8.js, but could not be resolved – treating it as an external dependency


 WARN  'oh-vue-icons/icons.js' is imported by .nuxt/dist/server/_nuxt/error-404.725c9a46.js, but could not be resolved – treating it as an external dependency


 WARN  'oh-vue-icons/icons.js' is imported by .nuxt/dist/server/_nuxt/error-500.2f78dd71.js, but could not be resolved – treating it as an external dependency

Development is working fine but when I try to serve my project via npm run serve, This following error occurs in a repeated sequence

[nuxt] [request error] Cannot find module '<my directory>/.output/server/node_modules/oh-vue-icons/icons.js' imported from <my directory>/.output/server/chunks/app/server.mjs
  at new NodeError (node:internal/errors:377:5)  
  at finalizeResolution (node:internal/modules/esm/resolve:405:11)  
  at moduleResolve (node:internal/modules/esm/resolve:966:10)  
  at defaultResolve (node:internal/modules/esm/resolve:1174:11)  
  at ESMLoader.resolve (node:internal/modules/esm/loader:605:30)  
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:318:18)  
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:80:40)  
  at link (node:internal/modules/esm/module_job:78:36)

I am using

  • wsl version 2
  • Ubuntu 20.04.4
  • node version 18.2.0
  • oh-vue-icons: "^1.0.0-rc3",

Expected behaviour

No error

If you need any additional information, please request it.

Thanks in advance

shu-vro avatar Aug 25 '22 06:08 shu-vro