You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.
Hello, I installed Draft.js on my project, a Rich Text Editor by Facebook : https://facebook.github.io/draft-js/
And this project has the particularity to be dependent of fbjs@0.8.0-alpha.2
And since, test doesn't run anymore, when I npm run test, I've got the following error :
START:
06 04 2016 17:53:21.039:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/
06 04 2016 17:53:21.071:INFO [launcher]: Starting browser PhantomJS
06 04 2016 17:53:22.960:INFO [PhantomJS 2.1.1 (Mac OS X 0.0.0)]: Connected on socket /#gba2WCoQqyELMJKhAAAA with id 86581400
PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
TypeError: undefined is not a constructor (evaluating 'query.startsWith(name)')
at /Users/freddy/Desktop/react-redux-starter-kit/tests/test-bundler.js:91609 <- webpack:///~/draft-js/~/fbjs/lib/UserAgent.js:35:0
Finished in 0.654 secs / 0 secs
SUMMARY:
✔ 0 tests completed
How to reproduce
You can reproduce it on a new project, after cloning the starter kit : npm install draft-js --save and add dependancies of this lib to a view, for example add the following code to src/views/HomeView/HomeView.js :
import {
Editor,
EditorState,
RichUtils,
Entity,
CompositeDecorator,
} from 'draft-js'
and npm run test
related ?
I don't know if it's an issue related to this project, or directly related to fbjs or maybe phantomjs. So, sorry if it's not related to this project.
Awesome, thanks for digging into it to figure out the exact issue and solution. I have some more to add to the discussion, but I will save that for your PR. Closing this since it's not an issue with the starter kit as it's intended, but see this comment and let me know your thoughts.
Issue
Hello, I installed Draft.js on my project, a Rich Text Editor by Facebook : https://facebook.github.io/draft-js/
And this project has the particularity to be dependent of fbjs@0.8.0-alpha.2
And since, test doesn't run anymore, when I
npm run test
, I've got the following error :How to reproduce
You can reproduce it on a new project, after cloning the starter kit :
npm install draft-js --save
and add dependancies of this lib to a view, for example add the following code tosrc/views/HomeView/HomeView.js
:and
npm run test
related ?
I don't know if it's an issue related to this project, or directly related to fbjs or maybe phantomjs. So, sorry if it's not related to this project.
I also noticed that react@15.0.0 will use fbjs@0.8.0 https://github.com/facebook/react/blob/master/package.json#L38
So it will be also problematic for the react update.
The text was updated successfully, but these errors were encountered: