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

I get 500 error loading dynamically imported module #3

Closed
XxHiroTTVxX opened this issue Nov 17, 2023 · 11 comments
Closed

I get 500 error loading dynamically imported module #3

XxHiroTTVxX opened this issue Nov 17, 2023 · 11 comments
Labels
needs info Extra information is needed

Comments

@XxHiroTTVxX
Copy link

XxHiroTTVxX commented Nov 17, 2023

500

error loading dynamically imported module: https://example.app.github.dev/_nuxt/pages/index.vue 
TypeError: error loading dynamically imported module: https://example.app.github.dev/_nuxt/pages/index.vue [vue-router.mjs:3471:20](https://example.app.github.dev/_nuxt/node_modules/.pnpm/vue-router@4.2.5_vue@3.3.8/node_modules/vue-router/dist/vue-router.mjs)
[nuxt] error caught during app initialization Error: error loading dynamically imported module: https://example.app.github.dev/_nuxt/pages/index.vue
Caused by: TypeError: error loading dynamically imported module: https://example.app.github.dev/_nuxt/pages/index.vue
@JaZo
Copy link
Member

JaZo commented Nov 17, 2023

Can you add a minimal reproducible example (based on https://stackblitz.com/github/swisnl/nuxt-lucide-icons?file=playground%2Fapp.vue for example)? I can't look into this with just this info.

@JaZo JaZo added the needs info Extra information is needed label Nov 17, 2023
@XxHiroTTVxX
Copy link
Author

XxHiroTTVxX commented Dec 2, 2023

mb for the late reply to this but to recreate my nuxt.config.ts looks like

export default defineNuxtConfig({
  devtools: { enabled: true },
  pages: true,
  modules: [
    'nuxt-lucide-icons'
  ]
})

and the icons are in

/pages/index.vue

but if I remove pages: true

and put the icons in app.vue in the project dir it will work with no error loading dynamically imported module

@XxHiroTTVxX
Copy link
Author

and for some reason I js tried to recreate the page working by adding it to app.vue and removing pages and it returns a blank white page

@XxHiroTTVxX
Copy link
Author

I might just be dumb tho but also when pnpm tauri dev is run it loads without any error in the app but localhost:3000 which is the dev server returns 500 error loading dynamically imported module

@XxHiroTTVxX
Copy link
Author

Can you add a minimal reproducible example (based on https://stackblitz.com/github/swisnl/nuxt-lucide-icons?file=playground%2Fapp.vue for example)? I can't look into this with just this info.

Also I wasn't able to recreate on there but I can provide the repo

@JaZo
Copy link
Member

JaZo commented Jan 3, 2024

Sorry for the lack of response, I haven't had the time to look into this. If you can provide a minimal reproducible example by either a stackblitz or a minimal repo (not your entire project) I can more easily find out what's happening.

@XxHiroTTVxX
Copy link
Author

yo so I figured out and its the stupidest thing ever but its because firefox 💀 it works perfectly fine on chrome is there something I can do to fix firefox to work lol

@XxHiroTTVxX
Copy link
Author

oh mb for opening a dumb issue I figured out that UBlockOrigin was the issue for some reason

@XxHiroTTVxX
Copy link
Author

**
image
**

@JaZo
Copy link
Member

JaZo commented Jan 4, 2024

Glad to see you figured it out! We banned adblockers during development for exactly this reason 😄

@StefanH-AT
Copy link

Just had the exact smae issue lol. Ublock origin just blocks anything called fingerprint.js or what? Maybe lucide-vue-next should rename that file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info Extra information is needed
Projects
None yet
Development

No branches or pull requests

3 participants