Skip to content

TypeError: state is not a function #1

Closed
@Victorystick

Description

@Victorystick

I'm using tippex in https://github.com/rollup/rollup-plugin-typescript, and encountered this error while attempting to bundle Angular2's TypeScript sources. I know it wasn't intended to be used on TypeScript, so the difference in grammars might explain the crash.

state is not a function
TypeError: state is not a function
    at find (/Users/oskar/github/rollup-plugin-typescript/node_modules/tippex/www/tippex/src/index.js:134:11)
    at Object.erase (/Users/oskar/github/rollup-plugin-typescript/node_modules/tippex/www/tippex/src/index.js:156:16)
    at fix (/Users/oskar/github/rollup-plugin-typescript/dist/rollup-plugin-typescript.cjs.js:47:28)
    at transform (/Users/oskar/github/rollup-plugin-typescript/dist/rollup-plugin-typescript.cjs.js:122:58)
    at /Users/oskar/github/rollup/Users/oskar/github/rollup/src/utils/transform.js:18:28
    at tryCatch (/Users/oskar/github/rollup/Users/oskar/github/rollup/node_modules/es6-promise/lib/es6-promise/-internal.js:182:12)
    at invokeCallback (/Users/oskar/github/rollup/Users/oskar/github/rollup/node_modules/es6-promise/lib/es6-promise/-internal.js:194:13)
    at /Users/oskar/github/rollup/Users/oskar/github/rollup/node_modules/es6-promise/lib/es6-promise/promise.js:376:9
    at flush (/Users/oskar/github/rollup/Users/oskar/github/rollup/node_modules/es6-promise/lib/es6-promise/asap.js:88:5)
    at doNTCallback0 (node.js:428:9)

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