Closed MrFoxPro closed 3 months ago
Also got error on importing: Error [ERR_MODULE_NOT_FOUND]: Cannot find module
for path alias in tsconfig's paths
, but works perfectly fine with v1.6.7
.
I authored the PR #727 and I suspect that the PR broke something. I'm going to figure it out.
I got the following message from v1.6.8, but not from v1.6.7. This is using esm and the npm package mysql2,
const [tableNames] = await mysqlPool().query<RowDataPacket[]>(·
^···
SyntaxError: Unexpected token ']'·
same issue here!
@cm-ayf any luck with this?
Looks good. Can be closed.
Last release fixed the issue for me
After upgrading from 1.6.7 to 1.6.8, I get following error:
My .swcrc:
My tsconfig.json
```jsonc { "compilerOptions": { "strict": false, "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": ".", // "sourceMap": true, // mandatory for SWC "target": "ESNext", "module": "NodeNext", "moduleResolution": "NodeNext", // "resolvePackageJsonImports": true, // https://github.com/swc-project/swc-node/pull/723 "paths": { "#/*": ["./*"], "#eql": ["./eql/index.mts"], "#eql/types": ["./eql/types.d.ts"] }, "noEmit": true, "isolatedModules": true, "skipDefaultLibCheck": true, "skipLibCheck": true }, "exclude": ["**/node_modules", "**/.*/"] } ```I tried with
"@swc/core": "^1.3.86"
and"@swc/core": "^1.3.90"
, no difference.