Skip to content

"compilation failed" while bundling (although the bundling works) #99

Closed
@andrenarchy

Description

@andrenarchy

In the same setup as described in /issues/98 (code here), the bundling spits out an error message:

     Creating the single-file build for src/index.ts...
TypeScript compilation failed [2 files, 0 failed, 2 unchecked] (TS9999)

       ┌─ src/index.ts
       ├─ npm:[email protected]/regenerator-runtime.js
       └─ src/utils.ts

ok   Fully-optimized - entire tree built via Rollup static optimization.

ok   Built into bundle.js with source maps, unminified as umd.

However, the bundle works as expected. If I change "typeCheck": true to "typeCheck": "strict", the bundling errors out with

TypeScript compilation failed [2 files, 0 failed, 2 unchecked] (TS9999)

err  Error: Typescript compilation failed
    at eval (file:///tmp/jspm-test/jspm_packages/github/frankwallis/[email protected]/plugin.js:55:31)

The unbundled version runs smoothly in the browser.

Maybe this is related to /issues/98?

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