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

After adding onMounted in App.vue, the href of modulepreload has no baseURL prefix #14564

Closed
Tzdy opened this issue Aug 13, 2022 · 2 comments · Fixed by nuxt/framework#6637
Closed

Comments

@Tzdy
Copy link

Tzdy commented Aug 13, 2022

Environment


  • Operating System: Linux
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.8
  • Package Manager: npm@7.17.0
  • Builder: vite
  • User Config: app
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-xje7sv?file=nuxt.config.ts

Describe the bug

After adding onMounted in App.vue, the href of modulepreload has no baseURL prefix. Running a dev server it works, but when running npm run build I get the following errors.

npm run build
node .output/server/index.mjs

屏幕快照 2022-08-13 上午10 58 23

Additional context

No response

Logs

No response

@Tzdy
Copy link
Author

Tzdy commented Aug 13, 2022

I fell back to rc.6 and it works

@ErickLuis00
Copy link

ErickLuis00 commented Aug 13, 2022

I detected the same problem, but missing the "cdnURL" .

https://stackblitz.com/edit/github-xje7sv-n28wxr?file=package.json&terminal=build,cdn&terminal

Just run "node .output/server/index.mjs" in the second terminal after the first one starts listening.

Port 8080: CDN
Port 3000: NUXT

You can clearly see that "modulepreload" does not use cdnURL.

similar issue
#13566

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

Successfully merging a pull request may close this issue.

3 participants