Closed szethh closed 9 months ago
Named export 'fromZodError' not found.
Can reproduce, although with a slightly different error. Pinning to 3.0.0 fixes it.
export { ValidationError } from './ValidationError';
^^^^^^
SyntaxError: Unexpected token 'export'
at internalCompileFunction (node:internal/vm:77:18)
at wrapSafe (node:internal/modules/cjs/loader:1288:20)
at Module._compile (node:internal/modules/cjs/loader:1340:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at cjsLoader (node:internal/modules/esm/translators:345:17)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:294:7)
at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
at async importModuleDynamicallyWrapper (node:internal/vm/module:431:15)
at async formattedImport (<X>\node_modules\.pnpm\mocha@10.3.0\node_modules\mocha\lib\nodejs\esm-utils.js:9:14)
at async exports.requireOrImport (<X>\node_modules\.pnpm\mocha@10.3.0\node_modules\mocha\lib\nodejs\esm-utils.js:42:28)
at async exports.loadFilesAsync (<X>\node_modules\.pnpm\mocha@10.3.0\node_modules\mocha\lib\nodejs\esm-utils.js:100:20)
at async singleRun (<X>\node_modules\.pnpm\mocha@10.3.0\node_modules\mocha\lib\cli\run-helpers.js:125:3)
at async exports.handler (<X>\node_modules\.pnpm\mocha@10.3.0\node_modules\mocha\lib\cli\run.js:370:5)
Running into import issues while building with vite 5. This only happens after updating to 3.0.1.
For now, I'm pinning the version to 3.0.0