Skip to content

TypeScript Error: failed to transpile tslib.es6.js #5

@mathix420

Description

@mathix420

Here is all my config hope it help fixing an issue!

> rollpkg build

✓ Cleaning dist folder 1 ms
✓ Checking rollpkg invariants 3 ms
✓ Creating rollup config 0 ms
✗ FAILED AT: Creating esm, cjs builds

TypeScript Error: failed to transpile '[...]/node_modules/tslib/tslib.es6.js'

tsconfig.json

{
    "extends": "rollpkg/configs/tsconfig.json",
    "compilerOptions": {
        "target": "es5",
        "lib": ["esnext"],
        "module": "esnext",
        "moduleResolution": "node",
        "rootDir": "./src",
        "strict": true,
    },
    "include": ["src" ],
    "exclude": [
        "node_modules",
        "**/tests/*",
        "dist"
    ]
}

package.json

{
  [...]

  "name": "vuito",
  "main": "dist/vuito.cjs.js",
  "module": "dist/vuito.esm.js",
  "types": "dist/index.d.ts",
  "sideEffects": false,
  "files": ["dist"],

  [...]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions