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

MapStore2-project created with createProject.js: Errors running npm run compile #1481

Closed
s-pic opened this issue Feb 16, 2017 · 5 comments
Closed

Comments

@s-pic
Copy link

s-pic commented Feb 16, 2017

I just pulled the new MapStore2-2017.01.00 and created a new project using createProject.js.

When I run npm install && npm run compile, webpack throws two errors:

ERROR in ./MapStore2/web/client/stores/StandardStore.js
Module not found: Error: Cannot resolve module 'redux-observable' in C:\somePath\myProject\MapStore2\web\client\stores
 @ ./MapStore2/web/client/stores/StandardStore.js 40:16-43

ERROR in ./MapStore2/web/client/utils/PluginsUtils.js
Module not found: Error: Cannot resolve module 'redux-observable' in C:\somePath\myProject\MapStore2\web\client\utils
 @ ./MapStore2/web/client/utils/PluginsUtils.js 29:16-43

After npm install --save solves the problem locally.
EDIT: npm install 'redux-observable' --save solves the problem locally.

After running npm run compile again, I get the following errors:

ERROR in ./~/redux-observable/lib/createEpicMiddleware.js
Module not found: Error: Cannot resolve module 'rxjs/Subject' in C:\somePath\myProject\MapStore2node_modules\redux-observable\lib
 @ ./~/redux-observable/lib/createEpicMiddleware.js 8:15-38

ERROR in ./~/redux-observable/lib/createEpicMiddleware.js
Module not found: Error: Cannot resolve module 'rxjs/operator/map' in C:\somePath\myProject\MapStore2node_modules\redux-observable\lib
 @ ./~/redux-observable/lib/createEpicMiddleware.js 10:11-39

ERROR in ./~/redux-observable/lib/createEpicMiddleware.js
Module not found: Error: Cannot resolve module 'rxjs/operator/switchMap' in C:\somePath\myProject\MapStore2node_modules\redux-observable\lib
 @ ./~/redux-observable/lib/createEpicMiddleware.js 12:17-51

ERROR in ./~/redux-observable/lib/ActionsObservable.js
Module not found: Error: Cannot resolve module 'rxjs/Observable' in C:\somePath\myProject\MapStore2node_modules\redux-observable\lib
 @ ./~/redux-observable/lib/ActionsObservable.js 10:19-45

ERROR in ./~/redux-observable/lib/ActionsObservable.js
Module not found: Error: Cannot resolve module 'rxjs/observable/of' in C:\somePath\myProject\MapStore2node_modules\redux-observable\lib
 @ ./~/redux-observable/lib/ActionsObservable.js 12:11-40

ERROR in ./~/redux-observable/lib/ActionsObservable.js
Module not found: Error: Cannot resolve module 'rxjs/observable/from' in C:\somePath\myProject\MapStore2node_modules\redux-observable\lib
 @ ./~/redux-observable/lib/ActionsObservable.js 14:13-44

ERROR in ./~/redux-observable/lib/ActionsObservable.js
Module not found: Error: Cannot resolve module 'rxjs/operator/filter' in C:\somePath\myProject\MapStore2node_modules\redux-observable\lib
 @ ./~/redux-observable/lib/ActionsObservable.js 16:14-45

ERROR in ./~/redux-observable/lib/combineEpics.js
Module not found: Error: Cannot resolve module 'rxjs/observable/merge' in C:\somePath\myProject\MapStore2node_modules\redux-observable\lib
 @ ./~/redux-observable/lib/combineEpics.js 8:13-45
@s-pic s-pic changed the title MapStore2-project created with createProject.js: redux-observable dependency missing MapStore2-project created with createProject.js: Errors running npm run compile Feb 16, 2017
@offtherailz
Copy link
Member

offtherailz commented Feb 16, 2017

The redux-observables dependency has been added today to the master branch, but you said you pulled MapStore2-2017.01.00 .
It sounds strange, like you did run npm install and than switched to master.

After pulling from master you should do npm install again, if some dependency has been added.
Wich version of npm/nodejs?

@simboss
Copy link
Member

simboss commented Feb 16, 2017

Can we bring discussions to the mailing list? ;)

@s-pic
Copy link
Author

s-pic commented Feb 16, 2017

I am using npm 3.10.10 and i pulled the master branch today.
Shall I describe the problem again in the mailing list?

@simboss
Copy link
Member

simboss commented Feb 16, 2017

Ideally, discussions should happen on the ML and issue should be open when we have identified an issue.

This is to help developers and other people to follow the flow.

@Gnafu
Copy link
Contributor

Gnafu commented Mar 16, 2017

We are tracking this in #1580

@Gnafu Gnafu closed this as completed Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants