question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build error 'Could not load #_config' with `ssr: false`

See original GitHub issue

Environment

Nuxt CLI v3.0.0-27467464.a0c4d6e 00:51:16 RootDir: C:\Dev\Projects\support-web 00:51:17 Nuxt project info: 00:51:17


  • Operating System: Windows_NT
  • Node Version: v16.14.0
  • Nuxt Version: 3.0.0-27467464.a0c4d6e
  • Package Manager: yarn@1.22.17
  • Builder: vite
  • User Config: css, meta, hooks, components, buildModules, modules, strapi, ssr, nitro
  • Runtime Modules: @formkit/nuxt@1.0.0-beta.6
  • Build Modules: @nuxtjs/strapi@1.3.1, @vueuse/nuxt@8.1.2, @pinia/nuxt@0.1.8

Reproduction

>yarn build 

yarn run v1.22.17
$ nuxi build
Nuxt CLI v3.0.0-27467464.a0c4d6e                                                                                                                                                                                                                                                                              00:59:43
i Vite client warmed up in 2634ms                                                                                                                                                                                                                                                                             00:59:49
i Client built in 6702ms                                                                                                                                                                                                                                                                                      00:59:53
i Building server...                                                                                                                                                                                                                                                                                          00:59:53

 ERROR  [vite:load-fallback] Could not load #_config (imported by virtual:C:/Dev/Projects/support-web/.nuxt/paths.mjs): ENOENT: no such file or directory, open 'C:\Dev\Projects\support-web\#_config'                                                                                                        00:59:53  


 ERROR  Could not load #_config (imported by virtual:C:/Dev/Projects/support-web/.nuxt/paths.mjs): ENOENT: no such file or directory, open 'C:\Dev\Projects\support-web\#_config'                                                                                                                             00:59:53  



error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Describe the bug

After the update(->v3.0.0-27467464.a0c4d6e), the following error occurred.

nuxi build
 ERROR  [vite:load-fallback] Could not load #_config (imported by virtual:C:/Dev/Projects/support-web/.nuxt/paths.mjs): ENOENT: no such file or directory, open 'C:\Dev\Projects\support-web\#_config'                                                                                                        00:59:53  


 ERROR  Could not load #_config (imported by virtual:C:/Dev/Projects/support-web/.nuxt/paths.mjs): ENOENT: no such file or directory, open 'C:\Dev\Projects\support-web\#_config'

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:10
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Teranodecommented, Mar 24, 2022

@danielroe

version (3.0.0-27467464.a0c4d6e) https://stackblitz.com/edit/github-gqtj6y?file=package.json version (3.0.0-27468803.23e7afb) (recent): https://stackblitz.com/edit/github-2uebfc?file=package.json

If you’re using build then disabling ssr also causes this error

0reactions
misaoncommented, Mar 25, 2022

Would you provide a reproduction? pray

You might try deleting the node_modules/.vite cache folder.

Deleting node_modules/.vite not work 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

next build throws error related to webpack - Stack Overflow
One common issue with using react leaflet with nexjs is that it will not work with ssr. Are you loading your leaflet component...
Read more >
Server Side Rendering - Loadable Components
The default behaviour of webpack, is to create an asset called main.js if no named entry is specified, like so. webpack.config.js. module.exports ...
Read more >
Build Options - Vite
Note the build will fail if the code contains features that cannot be safely transpiled by esbuild. See esbuild docs for more details....
Read more >
Creating Server-side Rendered Vue.js Apps Using Nuxt.js
This is a big indication that something is wrong with the application logic. Thankfully, an error will be generated in your browser's console...
Read more >
next.config.js: Runtime Configuration
Runtime Configuration. Note: This feature is considered legacy and does not work with Automatic Static Optimization, Output File Tracing, or React Server ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found