Can not generate static routes
See original GitHub issueEnvironment
- Operating System:
Linux
- Node Version:
v16.14.2
- Nuxt Version:
3.0.0-27501460.04a72f8
- Package Manager:
npm@8.5.0
- Builder:
vite
- User Config:
app
,build
,nitro
,vite
,experimental
,typescript
,features
,globalName
,cli
,alias
,components
,autoImports
,router
,css
,buildModules
,privateRuntimeConfig
,publicRuntimeConfig
,generate
,windicss
,partytown
- Runtime Modules:
-
- Build Modules:
@vueuse/nuxt@8.2.6
,nuxt-windicss@2.2.11
,@nuxtjs/partytown@1.1.1
,@unlighthouse/nuxt@0.3.21
Reproduction
follow latest version we can start generate static pages by config generate.routes
in Nuxt.config.js.
commit
- setup new nuxt with latest version , add new route to nuxt.config.js then try build.
Describe the bug
But for now when run build this error response:
ℹ Building server... 14:26:10
✔ Server built in 6292ms 14:26:17
✔ Generated public .output/public nitro 14:26:17
ℹ Prerendering routes nitro 14:26:17
⠙ Generating /helping-handls
ERROR [nuxt] [request error] Cannot find module '/workspace/.nuxt/prerender/chunks/app/core/core.js' imported from /workspace/.nuxt/prerender/chunks/app/server.mjs
at __node_internal_captureLargerStackTrace (node:internal/errors:464:5)
at new NodeError (node:internal/errors:371:5)
at finalizeResolution (node:internal/modules/esm/resolve:418:11)
at moduleResolve (node:internal/modules/esm/resolve:983:10)
at defaultResolve (node:internal/modules/esm/resolve:1080:11)
at ESMLoader.resolve (node:internal/modules/esm/loader:530:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:251:18)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:79:40)
at ModuleWrap.link (<anonymous>)
at link (node:internal/modules/esm/module_job:78:36)
<--- Last few GCs --->
[97766:0xffffb2a34340] 93766 ms: Mark-sweep (reduce) 2982.7 (3012.2) -> 2975.4 (3005.0) MB, 89.2 / 0.1 ms (average mu = 0.155, current mu = 0.029) allocation failure scavenge might not succeed
[97766:0xffffb2a34340] 93892 ms: Mark-sweep (reduce) 2983.0 (3012.5) -> 2975.4 (3005.2) MB, 90.7 / 0.1 ms (average mu = 0.224, current mu = 0.280) allocation failure scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
error Command failed with signal "SIGABRT".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.```
Sorry i going to move now so no time to create test project, but this issuehappend with fresh project too.
### Additional context
_No response_
### Logs
_No response_
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Static Route - Unable to add to router - Cisco Community
Hello,. I have 3 routers connected on which I ran IP OSPF 1 Area 0 command and they all worked fine as I...
Read more >Solution: BOSS: Unable to add Static Route - Extreme Portal
If one tries to use the "weight" option without creating a new route the system will reject and respond that the route doesn't...
Read more >Nuxt.js: can't generate routes - Stack Overflow
But when doing npm run generate I only get Generated route "/" and in /dist folder I see no routes generated. Nuxt.js version...
Read more >Solved: Issue creating static route in Route Domain - DevCentral
Solved: I have 3 route domains configured on the F5 other than the default route domain 0. Now I am trying to configure...
Read more >Configuring static IP routes
NOTE: On a single routing switch you can create one null route to a given destination. Multiple null routes to the same destination...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think you need to add
swiper
to you build.transpile array:I can no longer reproduce with latest nuxt + nitro.