Coder Social home page Coder Social logo

angular2-shop's Issues

Hello Nawal

Hi,

This is Swadesh (ShopNx). Could not find your email. Hence contacting you this way.
I am working on Javascript e-commerce (ShopNx) http://mshop.codenx.com/

I thought if you have time together we could make a much better product.

Contact me at [email protected]

Cannot resolve 'file' or 'directory'

When I try to run the "npm start", I get the error:

ERROR in Entry module not found: Error: Cannot resolve 'file' or 'directory' ./client/polyfills.ts in C:\Working\stamm\angular2-shop-master
resolve directory
  C:\Working\stamm\angular2-shop-master\client\polyfills.ts is not a directory (directory default file)
  C:\Working\stamm\angular2-shop-master\client\polyfills.ts\package.json doesn't exist (directory description file)
resolve file
  C:\Working\stamm\angular2-shop-master\client\polyfills.ts.ts doesn't exist
  C:\Working\stamm\angular2-shop-master\client\polyfills.ts.js doesn't exist
  C:\Working\stamm\angular2-shop-master\client\polyfills.ts.scss doesn't exist
  resolve result C:\Working\stamm\angular2-shop-master\client\polyfills.ts
  C:\Working\stamm\angular2-shop-master\package.json (directory description file): SyntaxError: Unexpected token  in JSON at position 0

ERROR in Entry module not found: Error: Cannot resolve 'file' or 'directory' ./client/vendor.ts in C:\Working\stamm\angular2-shop-master
resolve directory
  C:\Working\stamm\angular2-shop-master\client\vendor.ts is not a directory (directory default file)
  C:\Working\stamm\angular2-shop-master\client\vendor.ts\package.json doesn't exist (directory description file)
resolve file
  C:\Working\stamm\angular2-shop-master\client\vendor.ts.ts doesn't exist
  C:\Working\stamm\angular2-shop-master\client\vendor.ts.js doesn't exist
  C:\Working\stamm\angular2-shop-master\client\vendor.ts.scss doesn't exist
  resolve result C:\Working\stamm\angular2-shop-master\client\vendor.ts
  C:\Working\stamm\angular2-shop-master\package.json (directory description file): SyntaxError: Unexpected token  in JSON at position 0

ERROR in Entry module not found: Error: Cannot resolve 'file' or 'directory' ./client/main.browser.ts in C:\Working\stamm\angular2-shop-master
resolve directory
  C:\Working\stamm\angular2-shop-master\client\main.browser.ts is not a directory (directory default file)
  C:\Working\stamm\angular2-shop-master\client\main.browser.ts\package.json doesn't exist (directory description file)
resolve file
  C:\Working\stamm\angular2-shop-master\client\main.browser.ts.ts doesn't exist
  C:\Working\stamm\angular2-shop-master\client\main.browser.ts.js doesn't exist
  C:\Working\stamm\angular2-shop-master\client\main.browser.ts.scss doesn't exist
  resolve result C:\Working\stamm\angular2-shop-master\client\main.browser.ts
  C:\Working\stamm\angular2-shop-master\package.json (directory description file): SyntaxError: Unexpected token  in JSON at position 0

Is there something wrong with the webpack file

Can not start the app! Module not found: Error: Cannot resolve module!

I am trying to follow the instruction to getting start. When I try to run npm start, i have got following few errors:

ERROR in ./~/@angular2-material/checkbox/checkbox.umd.js
Module not found: Error: Cannot resolve module '@angular/forms' in ~\angular2-shop\node_modules\@angular2-material\checkbox
 @ ./~/@angular2-material/checkbox/checkbox.umd.js 2:110-135

ERROR in ./~/ng2-select/bundles/ng2-select.umd.js
Module not found: Error: Cannot resolve module '@angular/forms' in ~\angular2-shop\node_modules\ng2-select\bundles
 @ ./~/ng2-select/bundles/ng2-select.umd.js 3:81-106
Child html-webpack-plugin for "index.html":
    chunk    {0} index.html 1.63 kB [rendered]
        [0] ./~/html-webpack-plugin/lib/loader.js!./client/index.html 1.63 kB {0} [built]
           factory:282ms building:46ms = 328ms
webpack: Failed to compile.
[default] Checking started in a sepa0265ms o0ms optimize assets
Hash: 23e8d2ac06303e53964f
Version: webpack 1.15.0
Time: 28223ms
    + 823 hidden modules

ERROR in ./~/@angular2-material/checkbox/checkbox.umd.js
Module not found: Error: Cannot resolve module '@angular/forms' in ~\angular2-shop\node_modules\@angular2-material\checkbox
resolve module @angular/forms in ~\angular2-shop\node_modules\@angular2-material\checkbox
  looking for modules in ~\angular2-shop\client
    ~\angular2-shop\client\@angular doesn't exist (module as directory)
  looking for modules in ~\angular2-shop\node_modules
    resolve 'file' or 'directory' forms in ~\angular2-shop\node_modules\@angular
      resolve file
        ~\angular2-shop\node_modules\@angular\forms doesn't exist
        ~\angular2-shop\node_modules\@angular\forms.ts doesn't exist
        ~\angular2-shop\node_modules\@angular\forms.js doesn't exist
        ~\angular2-shop\node_modules\@angular\forms.scss doesn't exist
      resolve directory
        ~\angular2-shop\node_modules\@angular\forms doesn't exist (directory default file)
        ~\angular2-shop\node_modules\@angular\forms\package.json doesn't exist (directory description file)
[~\angular2-shop\client\@angular]
[~\angular2-shop\node_modules\@angular\forms]
[~\angular2-shop\node_modules\@angular\forms.ts]
[~\angular2-shop\node_modules\@angular\forms.js]
[~\angular2-shop\node_modules\@angular\forms.scss]
 @ ./~/@angular2-material/checkbox/checkbox.umd.js 2:110-135

ERROR in ./~/ng2-select/bundles/ng2-select.umd.js
Module not found: Error: Cannot resolve module '@angular/forms' in ~\angular2-shop\node_modules\ng2-select\bundles
resolve module @angular/forms in ~\angular2-shop\node_modules\ng2-select\bundles
  looking for modules in ~\angular2-shop\client
    ~\angular2-shop\client\@angular doesn't exist (module as directory)
  looking for modules in ~\angular2-shop\node_modules
    resolve 'file' or 'directory' forms in ~\angular2-shop\node_modules\@angular
      resolve file
        ~\angular2-shop\node_modules\@angular\forms doesn't exist
        ~\angular2-shop\node_modules\@angular\forms.ts doesn't exist
        ~\angular2-shop\node_modules\@angular\forms.js doesn't exist
        ~\angular2-shop\node_modules\@angular\forms.scss doesn't exist
      resolve directory
        ~\angular2-shop\node_modules\@angular\forms\package.json doesn't exist (directory description file)
        ~\angular2-shop\node_modules\@angular\forms doesn't exist (directory default file)
[~\angular2-shop\client\@angular]
[~\angular2-shop\node_modules\@angular\forms]
[~\angular2-shop\node_modules\@angular\forms.ts]
[~\angular2-shop\node_modules\@angular\forms.js]
[~\angular2-shop\node_modules\@angular\forms.scss]
 @ ./~/ng2-select/bundles/ng2-select.umd.js 3:81-106

and the process stack by given a error as following:

[default] ~/angular2-shop/node_modules/rxjs/scheduler/Action.d.ts:30:1
    Declaration or statement expected.

Not Working

Hii Nawal,
I am the beginner in anguar2, I am referring to your project for making another shop project.
Your project cant run properly you can send me proper source code along with database with setup

Thanks, advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.