-
Notifications
You must be signed in to change notification settings - Fork 46
Failed to load source map for #198
Comments
Can you share a minimal reproduction? Thanks. |
reproduction: https://github.com/productfrontenddeveloper/nuxt-vite-bug Sorry for the late reply, it took a while to shrink the project. graphql note: https://github.com/rollup/plugins/tree/master/packages/graphql |
@amejiarosario have you been able to fix this? I'm stuck with the same errors. |
@foxxycodes, unfortunately, no, also I put that project on the back burner for now |
Stuck with same warnings :( |
I got similar warnings after setting up Vite on a Nuxt + TSproject
|
Also have the same warnings. |
same error when run |
I'm having this same error. |
I added all dependencies from |
@souljorje Thank you that worked. I had multiple entry points. Specifying them in export default defineConfig({
plugins: [react()],
optimizeDeps: {
entries: ['./src/dashboard/app.tsx']
}
}) |
very bad experience with this bug ~_~| |
same bug with using pnpm, I solved this bug by removing loadEnv from .vue component. Drop importing loadEnv. |
Same here |
me too |
1 similar comment
me too |
https://cn.vitejs.dev/config/#optimizedeps-entries 或者配置入口项 默认情况下,Vite 会抓取你的 index.html 来检测需要预构建的依赖项。如果指定了 build.rollupOptions.input,Vite 将转而去抓取这些入口点。 如果这两者都不合你意,则可以使用此选项指定自定义条目——该值需要遵循 fast-glob 模式 ,或者是相对于 Vite 项目根的模式数组。这将覆盖掉默认条目推断。 |
https://cn.vitejs.dev/config/#optimizedeps-entries 或者配置入口项 默认情况下,Vite 会抓取你的 index.html 来检测需要预构建的依赖项。如果指定了 build.rollupOptions.input,Vite 将转而去抓取这些入口点。 如果这两者都不合你意,则可以使用此选项指定自定义条目——该值需要遵循 fast-glob 模式 ,或者是相对于 Vite 项目根的模式数组。这将覆盖掉默认条目推断。 |
Add this in your vite config file
|
Unfortunately this doesn't fix the error |
Add nuxt.config.ts
|
I found that open ElementPlusResolver will appear this kind of situation |
Versions
nuxt-vite: 0.2.3
nuxt: 2.15.8
Description
The text was updated successfully, but these errors were encountered: