microsoft / redux-micro-frontend

This is a library for using Redux to manage state for self-contained apps in a Micro-Frontend architecture. Each self-contained isolated app can have its own isolated and decoupled Redux store. The componentized stores interact with a global store for enabling cross-application communication.
MIT License
344 stars 64 forks source link

Issue with start-component #3

Closed grvpanchal closed 3 years ago

grvpanchal commented 3 years ago

I get following error while using npm run start start-component

$ npm run start start-component

> redux-micro-frontend-sample-todo@0.0.0 start C:\Users\HOME\Documents\projects\redux-micro-frontend\sample\todoApp
> webpack serve "start-component"

`resolve/lib/core` is deprecated; please use `is-core-module` directly
[webpack-cli] Unknown argument: start-component
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! redux-micro-frontend-sample-todo@0.0.0 start: `webpack serve "start-component"`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the redux-micro-frontend-sample-todo@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\HOME\AppData\Roaming\npm-cache\_logs\2020-12-03T13_24_20_148Z-debug.log
patrickCode commented 3 years ago

The issue is likely in your command. start and start-component are 2 different commands. Use only npm run start-component.

grvpanchal commented 3 years ago

Yes, it worked with npm run start-component. Seems like the README.md was misleading. Should have read package.json first.

patrickCode commented 3 years ago

Thanks about pointing to the mistake in Readme. I will get it fixed.