Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Babel failure on v23.6.0 #1087

Open
marco-ippolito opened this issue Jan 6, 2025 · 1 comment
Open

Babel failure on v23.6.0 #1087

marco-ippolito opened this issue Jan 6, 2025 · 1 comment

Comments

@marco-ippolito
Copy link
Member

I see a babel failure in the CITGM (cc @nicolo-ribaudo):
CITGM run: https://ci.nodejs.org/job/citgm-smoker/3531/

 PASS packages/babel-plugin-proposal-decorators/test/index.js (15.302 s)
 Summary of all failing tests
 FAIL packages/babel-core/test/config-ts.js
 @babel/core config with ts > should work with simple .cts
     /home/iojs/tmp/citgm_tmp/24c5a264-6133-49c4-bef6-83851475ddd3/@babel/core/packages/babel-core/test/fixtures/config-ts/simple-cts/babel.config.cts:1
     import path from "path";
     ^^^^^^
     
     SyntaxError: Cannot use import statement outside a module
         at wrapSafe (node:internal/modules/cjs/loader:1670:18)
         at Module._compile (node:internal/modules/cjs/loader:1713:20)
         at Object.loadCTS [as .cts] (node:internal/modules/cjs/loader:1802:10)
         at Module.load (node:internal/modules/cjs/loader:1473:32)
         at Function._load (node:internal/modules/cjs/loader:1285:12)
         at TracingChannel.traceSync (node:diagnostics_channel:322:14)
         at wrapModuleLoad (node:internal/modules/cjs/loader:234:24)
         at Module.require (node:internal/modules/cjs/loader:1495:12)
         at require (node:internal/modules/helpers:135:16)
         at loadPartialConfigSync (/home/iojs/tmp/citgm_tmp/24c5a264-6133-49c4-bef6-83851475ddd3/@babel/core/packages/babel-core/src/config/index.ts:50:60)
         at file:///home/iojs/tmp/citgm_tmp/24c5a264-6133-49c4-bef6-83851475ddd3/@babel/core/packages/babel-core/test/config-ts.js?1735910074539:25:20
         at async file:///home/iojs/tmp/citgm_tmp/24c5a264-6133-49c4-bef6-83851475ddd3/@babel/core/node_modules/tinypool/dist/esm/entry/worker.js:71:20
 @babel/core config with ts > should throw with invalid .ts register
     Error: expect(received).toThrow(expected)
     
     Expected pattern: /Unexpected identifier.*/
     
     Received function did not throw
         at file:///home/iojs/tmp/citgm_tmp/24c5a264-6133-49c4-bef6-83851475ddd3/@babel/core/packages/babel-core/test/config-ts.js?1735910074539:53:10
         at async file:///home/iojs/tmp/citgm_tmp/24c5a264-6133-49c4-bef6-83851475ddd3/@babel/core/node_modules/tinypool/dist/esm/entry/worker.js:71:20
@nicolo-ribaudo
Copy link

Taking a look, it's caused by the new .ts default support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants