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.

Failure with nuxt-svg-sprite

See original GitHub issue

Version

nuxt-i18n: 6.13.7 nuxt: 2.14.1

Nuxt configuration

mode:

  • [] universal
  • spa

Nuxt-i18n configuration

Reproduction Link

Steps to reproduce

npm run dev

What is Expected?

The dev server gets started

What is actually happening?

ℹ Preparing project for development                                                                                                                                                         10:01:21
ℹ Initial build may take a while                                                                                                                                                            10:01:21
✔ Builder initialized                                                                                                                                                                       10:01:21

 ERROR  ENOENT: no such file or directory, open '/some/directory/.nuxt/nuxt-svg-sprite-icons-list.vue'                                                        10:01:21

  at Object.openSync (fs.js:443:3)
  at readFileSync (fs.js:343:35)
  at exports.extractComponentOptions.path (node_modules/nuxt-i18n/src/helpers/components.js:17:45)
  at buildLocalizedRoutes (node_modules/nuxt-i18n/src/helpers/routes.js:32:21)
  at exports.makeRoutes (node_modules/nuxt-i18n/src/helpers/routes.js:150:46)
  at Object.moduleContainer.extendRoutes.routes (node_modules/nuxt-i18n/src/core/hooks.js:47:33)
  at Object.extendRoutes (node_modules/@nuxt/utils/dist/utils.js:1860:25)
  at Builder.resolveRoutes (node_modules/@nuxt/builder/dist/builder.js:5867:56)

This was working until the recent updates to nuxt-i18n.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
rchlcommented, Aug 11, 2020

If you are not using that function, you could set parsePages: false.

But I have fixed this anyway now.

1reaction
rchlcommented, Aug 8, 2020

Right, that makes sense. This module has moved the code that ran at build time to run from build:before hook. So that has changed the timings slightly.

The module system in Nuxt is a bit brittle and undefined when it comes to multiple modules interacting with each other… I suppose I will just have to ignore missing routes…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failure with nuxt-svg-sprite · Issue #838 · nuxt-modules/i18n
So one of the quirks with getting the two to play together (going back at least 4 months) was to add @nuxtjs/svg-sprite in...
Read more >
Issue with using Nuxt + @nuxtjs/svg and dynamic import of ...
I'm currently using the NuxtJS/svg package and having problems with dynamic import. For example: I have 10 SVGs inside /assets/images ...
Read more >
@nuxtjs/svg-sprite - CodeSandbox
Activating extension 'vscode.typescript-language-features' failed: Could not find bundled tsserver.js.
Read more >
@nuxtjs/svg-sprite - npm
Optimized and Easy way to use svg files in Nuxt.js. Latest version: 0.5.2, last published: 2 years ago. Start using @nuxtjs/svg-sprite in ...
Read more >
@nuxtjs/svg-sprite - npm Package Health Analysis | Snyk
Optimized and Easy way to use svg files in Nuxt.js For more information about how to use this package see README. Latest version...
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