You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node:internal/process/promises:394
triggerUncaughtException(err, true /* fromPromise */);
^
SyntaxError: /xxx/test-rspack/src/app/app.routes.ts: Missing initializer in const declaration. (3:19)
1 | import { Routes } from '@angular/router';
2 |
> 3 | export const routes: Routes = [];
| ^
4 |
at constructor (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:359:19)
at Parser.raise (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:3327:19)
at Parser.parseVar (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:13004:16)
at Parser.parseVarStatement (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:12843:10)
at Parser.parseStatementContent (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:12458:23)
at Parser.parseStatementLike (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:12375:17)
at Parser.parseStatementListItem (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:12355:17)
at Parser.parseExportDeclaration (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:13535:17)
at Parser.maybeParseExportDeclaration (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:13494:31)
at Parser.parseExport (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:13419:29)
at Parser.parseStatementContent (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:12488:27)
at Parser.parseStatementLike (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:12375:17)
at Parser.parseModuleItem (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:12352:17)
at Parser.parseBlockOrModuleBlockBody (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:12929:36)
at Parser.parseBlockBody (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:12922:10)
at Parser.parseProgram (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:12249:10)
at Parser.parseTopLevel (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:12239:25)
at Parser.parse (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:14089:10)
at parse (/xxx/test-rspack/node_modules/@babel/parser/lib/index.js:14123:38)
at parser (/xxx/test-rspack/node_modules/@babel/core/lib/parser/index.js:41:34)
at parser.next (<anonymous>)
at normalizeFile (/xxx/test-rspack/node_modules/@babel/core/lib/transformation/normalize-file.js:64:37)
at normalizeFile.next (<anonymous>)
at run (/xxx/test-rspack/node_modules/@babel/core/lib/transformation/index.js:22:50)
at run.next (<anonymous>)
at transform (/xxx/test-rspack/node_modules/@babel/core/lib/transform.js:22:33)
at transform.next (<anonymous>)
at step (/xxx/test-rspack/node_modules/gensync/index.js:261:32)
at /xxx/test-rspack/node_modules/gensync/index.js:273:13
at async.call.result.err.err (/xxx/test-rspack/node_modules/gensync/index.js:223:11)
at /xxx/test-rspack/node_modules/gensync/index.js:189:28
at /xxx/test-rspack/node_modules/@babel/core/lib/gensync-utils/async.js:67:7
at /xxx/test-rspack/node_modules/gensync/index.js:113:33
at step (/xxx/test-rspack/node_modules/gensync/index.js:287:14)
at /xxx/test-rspack/node_modules/gensync/index.js:273:13
at async.call.result.err.err (/xxx/test-rspack/node_modules/gensync/index.js:223:11)
Node.js v22.12.0
Note that I don't have the issue with Rsbuild.
The text was updated successfully, but these errors were encountered:
Hey,
I get an error while using Rspack with fresh Angular CLI project:
npx rspack build
, it outputs:Note that I don't have the issue with Rsbuild.
The text was updated successfully, but these errors were encountered: