Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Cannot read properties of undefined (reading 'stripLeadingPaths') #285

Closed
danilofuchs opened this issue Jan 26, 2024 · 1 comment
Closed

Comments

@danilofuchs
Copy link

Related to #283

@swc/cli 0.3.1

swc src --config-file ./.swcrc --out-dir dist

.swcrc:

{
  "$schema": "https://json.schemastore.org/swcrc",
  "exclude": ["./**/*.test.ts", "./**/*.spec.ts", "test/**/*"],
  "module": {
    "type": "es6",
    "strictMode": true,
    "noInterop": false
  },
  "jsc": {
    "externalHelpers": false,
    "target": "es2022",
    "parser": {
      "syntax": "typescript",
      "dynamicImport": true
    },
    "keepClassNames": true
  }
}
@bitschubse
Copy link

bitschubse commented Jan 26, 2024

Has anyone tested version 0.3.1 before it was released? It seems that all cli calls (with and without the flag --strip-leading-paths) fail with the mentioned error message.

@kdy1 kdy1 closed this as completed in 8d8b146 Jan 26, 2024
dsvgit pushed a commit to dsvgit/cli that referenced this issue Jan 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants