CuppaLabs / cuppa-ng2-slidemenu

Angular 2 Slide Menu navigation componet for mobile and web
https://cuppalabs.github.io/cuppa-ng2-slidemenu/
17 stars 22 forks source link

Module not found #1

Closed ManikandanKrishnan closed 7 years ago

ManikandanKrishnan commented 7 years ago

Hi Team,

I am trying to run the code locally, I followed the following steps:

  1. got clone https://github.com/CuppaLabs/cuppa-ng2-slidemenu.git
  2. extracted and put it in the c:/
  3. in CMD navigated to the folder(ie cd cuppa-ng2-slidemenu-master/cuppa-ng2-slidemenu-master)
  4. npm install
  5. npm start I got the following error :

**ERROR in ./src/app/app.module.ts Module not found: Error: Can't resolve 'cuppa-ng2-slidemenu/cuppa-ng2-slidemenu' in 'C:\cuppa-ng2-slidemenu-master\cuppa-ng2-slidemenu-master\src\app' @ ./src/app/app.module.ts 9:0-74 @ ./src/app/index.ts @ ./src/main.browser.ts @ multi (webpack)-dev-server/client?http://localhost:3000 ./src/main.browser.ts

ERROR in ./~/ng2-handy-syntax-highlighter/src/library/index.js Module not found: Error: Can't resolve 'tslib' in 'C:\cuppa-ng2-slidemenu-master\cuppa-ng2-slidemenu-master\node_modules\ng2-handy-syntax-highlighter\src\library' @ ./~/ng2-handy-syntax-highlighter/src/library/index.js 2:14-30 @ ./~/ng2-handy-syntax-highlighter/index.js @ ./src/app/app.module.ts @ ./src/app/index.ts @ ./src/main.browser.ts @ multi (webpack)-dev-server/client?http://localhost:3000 ./src/main.browser.ts

ERROR in ./~/ng2-handy-syntax-highlighter/src/library/directive/highlighter.directive.js Module not found: Error: Can't resolve 'tslib' in 'C:\cuppa-ng2-slidemenu-master\cuppa-ng2-slidemenu-master\node_modules\ng2-handy-syntax-highlighter\src\library\dire ctive' @ ./~/ng2-handy-syntax-highlighter/src/library/directive/highlighter.directive.js 2:14-30 @ ./~/ng2-handy-syntax-highlighter/src/library/index.js @ ./~/ng2-handy-syntax-highlighter/index.js @ ./src/app/app.module.ts @ ./src/app/index.ts @ ./src/main.browser.ts @ multi (webpack)-dev-server/client?http://localhost:3000 ./src/main.browser.ts

ERROR in ./~/ng2-handy-syntax-highlighter/src/library/component/handy-syntax-highlighter.component.js Module not found: Error: Can't resolve 'tslib' in 'C:\cuppa-ng2-slidemenu-master\cuppa-ng2-slidemenu-master\node_modules\ng2-handy-syntax-highlighter\src\library\comp onent' @ ./~/ng2-handy-syntax-highlighter/src/library/component/handy-syntax-highlighter.component.js 2:14-30 @ ./~/ng2-handy-syntax-highlighter/src/library/index.js @ ./~/ng2-handy-syntax-highlighter/index.js @ ./src/app/app.module.ts @ ./src/app/index.ts @ ./src/main.browser.ts @ multi (webpack)-dev-server/client?http://localhost:3000 ./src/main.browser.ts Child html-webpack-plugin for "index.html": chunk {0} index.html 544 kB [entry]

CuppaLabs commented 7 years ago

Hi, I've migrated the development code to angular cli. Also, fixedthe npm package errors.Hence, closing the issue. Clone the repo again and follow the run locally steps.