-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Error on npm install
#891
Comments
@kangax - thanks for opening the issue :| Sorry it's taken us more than 2 weeks to respond. I just pulled down master and ran
and didn't have any issues (node v6.3.1, npm v3.10.3). would you mind trying again and i'll make sure to respond in a more timely manner? |
@davidchang hm, I'm still seeing this. I'm running this within git submodule under babili repo. Just did this: > rm -rf draft-js
> git submodule add https://github.com/facebook/draft-js draft-js
> 'scripts/draft-js' already exists in the index
> git submodule update draft-js
> Submodule path 'draft-js': checked out '437410bd9dfc18077064848bab09c8da7075f09e'
> cd draft-js
> npm cache clean && npm install
> ...
> draft-js@0.9.0 build /Users/kangax/dev/babili/scripts/draft-js
> ...
> [12:58:12] Starting 'flow'...
> ...
> SyntaxError: /Users/kangax/dev/babili/scripts/draft-js/src/component/base/DraftEditor.react.js: Missing class properties transform. |
Just checked clean install (not as submodule) and, as expected, @gabelevi any idea what it could be? |
Looks like it's not specifically Flow. If I add |
Ok, I had to add |
how / where do i add this to the jest preprocessor? |
this didn't do the trick:
|
this works. thanks! (-:
|
Trying to
npm install
in a freshly-pulled repository throws:SyntaxError: <...>/draft-js/src/component/base/DraftEditor.react.js: Missing class properties transform.
Full log:
https://gist.github.com/kangax/f02a97fca90c6b1b8b01a70259bea3b5
Could it be that https://babeljs.io/docs/plugins/transform-class-properties is somehow missing from installed dependencies?
The text was updated successfully, but these errors were encountered: