nuffsaid
nuffsaid
NNuxt
Created by nuffsaid on 4/16/2025 in #❓・help
npm run build crashes after upgrade to Nuxt 3.16 due to exsolve
after upgrading to Nuxt 3.16 (from Nuxt 3.15) npm run build suddenly breaks with errors in the exsolve module. In my application code (so outside of node_modules) I do not use any node functionality (directly). All I receive is this rather cryptic message of an error caused within exsolve itself. Did anyone else have this problem after the upgrade and how did you solve it? Thanks a lot for any pointers!
[ nuxi 15:58:23] ERROR Nuxt Build Error: node_modules/exsolve/dist/index.mjs (7:9): "format" is not exported by "__vite-browser-external", imported by "node_modules/exsolve/dist/index.mjs".
file: /Users/someuser/someproject/node_modules/exsolve/dist/index.mjs:7:9

5: import process$1 from 'node:process';
6: import v8 from 'node:v8';
7: import { format, inspect } from 'node:util';
^
8:
9: const nodeBuiltins = [


at getRollupError (node_modules/rollup/dist/es/shared/parseAst.js:397:41)
at error (node_modules/rollup/dist/es/shared/parseAst.js:393:42)
at Module.error (node_modules/rollup/dist/es/shared/node-entry.js:16750:16)
at Module.traceVariable (node_modules/rollup/dist/es/shared/node-entry.js:17199:29)
at ModuleScope.findVariable (node_modules/rollup/dist/es/shared/node-entry.js:14855:39)
at FunctionScope.findVariable (node_modules/rollup/dist/es/shared/node-entry.js:5583:38)
at FunctionBodyScope.findVariable (node_modules/rollup/dist/es/shared/node-entry.js:5583:38)
at Identifier.bind (node_modules/rollup/dist/es/shared/node-entry.js:5357:40)
at CallExpression.bind (node_modules/rollup/dist/es/shared/node-entry.js:2780:28)
at CallExpression.bind (node_modules/rollup/dist/es/shared/node-entry.js:11935:15)
[ nuxi 15:58:23] ERROR Nuxt Build Error: node_modules/exsolve/dist/index.mjs (7:9): "format" is not exported by "__vite-browser-external", imported by "node_modules/exsolve/dist/index.mjs".
file: /Users/someuser/someproject/node_modules/exsolve/dist/index.mjs:7:9

5: import process$1 from 'node:process';
6: import v8 from 'node:v8';
7: import { format, inspect } from 'node:util';
^
8:
9: const nodeBuiltins = [


at getRollupError (node_modules/rollup/dist/es/shared/parseAst.js:397:41)
at error (node_modules/rollup/dist/es/shared/parseAst.js:393:42)
at Module.error (node_modules/rollup/dist/es/shared/node-entry.js:16750:16)
at Module.traceVariable (node_modules/rollup/dist/es/shared/node-entry.js:17199:29)
at ModuleScope.findVariable (node_modules/rollup/dist/es/shared/node-entry.js:14855:39)
at FunctionScope.findVariable (node_modules/rollup/dist/es/shared/node-entry.js:5583:38)
at FunctionBodyScope.findVariable (node_modules/rollup/dist/es/shared/node-entry.js:5583:38)
at Identifier.bind (node_modules/rollup/dist/es/shared/node-entry.js:5357:40)
at CallExpression.bind (node_modules/rollup/dist/es/shared/node-entry.js:2780:28)
at CallExpression.bind (node_modules/rollup/dist/es/shared/node-entry.js:11935:15)
5 replies