Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(commonjs plugin) TypeError: parse is not a function #87

Open
bencbartlett opened this issue May 2, 2018 · 2 comments
Open

(commonjs plugin) TypeError: parse is not a function #87

bencbartlett opened this issue May 2, 2018 · 2 comments
Labels

Comments

@bencbartlett
Copy link

Steps to reproduce:

  1. Download the repository and unzip
  2. Navigate to directory and run npm install
  3. Compile with rollup -c

Result:

src/main.ts → dist/main.js...
[!] (commonjs plugin) TypeError: parse is not a function in /Users/ben/Downloads/screeps-typescript-starter-master 2/node_modules/source-map/source-map.js
node_modules/source-map/source-map.js
TypeError: parse is not a function in /Users/ben/Downloads/screeps-typescript-starter-master 2/node_modules/source-map/source-map.js
    at error (/usr/local/lib/node_modules/rollup/dist/rollup.js:169:15)
    at /usr/local/lib/node_modules/rollup/dist/rollup.js:17413:17
    at <anonymous>

TypeScript version: 2.8.3
Node version: 8.10.0

@m-rsmn
Copy link

m-rsmn commented May 10, 2018

Facing the same issue

Thanks to the screeps slack & Gankdalf

Edit: This seems to have fixed it for me

To fix it temporarily, I added "rollup-plugin-commonjs": "8.3.0" in my devDependencies to override the new version.

(ng-packagr/ng-packagr#657)

Might help you as well @bencbartlett

@dmarcuse dmarcuse added the bug label May 13, 2018
@tcdejong
Copy link
Contributor

tcdejong commented Nov 7, 2018

In package.json, change the version for the rollup-plugin-commonjs to 8.1.4, run npm install and you should be golden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants