Skip to content
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

Problem with nuxt 3 #26

Open
shu-vro opened this issue Aug 25, 2022 · 0 comments
Open

Problem with nuxt 3 #26

shu-vro opened this issue Aug 25, 2022 · 0 comments

Comments

@shu-vro
Copy link

shu-vro commented Aug 25, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant