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

Known issues with NPM modules

Floris Bernard edited this page Jul 13, 2016 · 18 revisions

Known issues with 3rd party NPM dependencies

Bugs / unexpected behavior (with workaround)

phantomjs-prebuilt

  • PhantomJS (which runs our unit tests) has very poor support for ES5. For example, Array.find() will fail.
    workaround: include a polyfill in your test/index.ts entry file.

typescript

  • Libraries that use the export = syntax for exporting don't work in Typescript
    workaround: add "allowSyntheticDefaultImports": true to your tsconfig.json and import your libary using the syntax import * as name from 'some-npm-module'

Bugs / unexpected behavior (no workaround yet)

(nothing here yet)

Other tips/tricks

(nothing here yet)

Clone this wiki locally