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.

SSR breaks when using v6.13.10 or higher

See original GitHub issue

Version

nuxt-i18n: v6.13.12 (v6.13.9 works perfectly, starting from v6.13.10 I have the problem below) nuxt: v2.14.4

Nuxt configuration

mode:

  • universal
  • [] spa

Nuxt-i18n configuration

https://github.com/miteyema/nuxt-i18n-demo/blob/prod/nuxt.config.js

Reproduction Link

https://github.com/miteyema/nuxt-i18n-demo

Steps to reproduce

Go to https://nuxt-i18n-demo.vercel.app/sitemap.xml

What is Expected?

Should show sitemap

What is actually happening?

502: BAD_GATEWAY

FATAL  Cannot find module 'vue-template-compiler'
Require stack:
- /var/task/node_modules/nuxt-i18n/src/helpers/components.js
- /var/task/node_modules/nuxt-i18n/src/helpers/routes.js
- /var/task/node_modules/nuxt-i18n/src/core/hooks.js
- /var/task/node_modules/nuxt-i18n/src/index.js
- /var/task/node_modules/@nuxt/core/dist/core.js
- /var/task/now__launcher.js- /var/runtime/UserFunction.js
- /var/runtime/index.js  
Error: Cannot find module 'vue-template-compiler'  
Require stack:  
- node_modules/nuxt-i18n/src/helpers/components.js  
- node_modules/nuxt-i18n/src/helpers/routes.js  
- node_modules/nuxt-i18n/src/core/hooks.js  
- node_modules/nuxt-i18n/src/index.js  
- node_modules/@nuxt/core/dist/core.js  
- now__launcher.js  - /var/runtime/UserFunction.js  
- /var/runtime/index.js  at Object.<anonymous> (node_modules/nuxt-i18n/src/helpers/components.js:6:18)  at Generator.next (<anonymous>)2020-09-08T01:33:23.805Z	f618bd89-7fad-41c4-a5a1-270d0c8e5373	ERROR	λ Error while initializing nuxt: /var/task/node_modules/nuxt-i18n/src/helpers/components.js:1Error: Cannot find module 'vue-template-compiler'Require stack:- /var/task/node_modules/nuxt-i18n/src/helpers/components.js- /var/task/node_modules/nuxt-i18n/src/helpers/routes.js- /var/task/node_modules/nuxt-i18n/src/core/hooks.js- /var/task/node_modules/nuxt-i18n/src/index.js- /var/task/node_modules/@nuxt/core/dist/core.js- /var/task/now__launcher.js- /var/runtime/UserFunction.js- /var/runtime/index.js    at Object.<anonymous> (/var/task/node_modules/nuxt-i18n/src/helpers/components.js:6:18)    at Generator.next (<anonymous>) {  code: 'MODULE_NOT_FOUND',  requireStack: [    '/var/task/node_modules/nuxt-i18n/src/helpers/components.js',    '/var/task/node_modules/nuxt-i18n/src/helpers/routes.js',    '/var/task/node_modules/nuxt-i18n/src/core/hooks.js',    '/var/task/node_modules/nuxt-i18n/src/index.js',    '/var/task/node_modules/@nuxt/core/dist/core.js',    '/var/task/now__launcher.js',    '/var/runtime/UserFunction.js',    '/var/runtime/index.js'  ]}RequestId: f618bd89-7fad-41c4-a5a1-270d0c8e5373 Error: Runtime exited with error: exit status 1Runtime.ExitError

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
rchlcommented, Sep 8, 2020

Should be fixed in v6.14.2. Sorry for the trouble.

1reaction
rchlcommented, Sep 8, 2020

Released v6.14.0 that should fix it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SSR breaks when using v6.13.10 or higher · Issue #882 · nuxt ...
Version nuxt-i18n: v6.13.12 (v6.13.9 works perfectly, starting from v6.13.10 I have the problem below) nuxt: v2.14.4 Nuxt configuration mode: universal ...
Read more >
SSR Date Formatting in Remix using the User's Locale
How I achieved consistent date formatting in Remix on both client side and server side rendered React using a LocaleProvider and Intl.DateTimeFormat.
Read more >
Untitled
How do you use gregarious in a sentence, Partner starbucks spotify, Social media damaging ... Gamezer v6 coolgame mode activator, Video satellite pro...
Read more >
Untitled
Record breaking snow in boston, Hillary clinton 2016 campaign manager, Rehda news! Colwyn bay pier pressure group, Different arm tattoos.
Read more >
React 18 Migration | Nx
In addition to the React 18 migration, Nx will also update your workspace to React Router v6 -- assuming you use React Router...
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