nawalgupta / angular2-shop

Angular2 +Full Stack Multi Tenant Shop - eCommerce Prototype using all latest technologies
MIT License
44 stars 54 forks source link

Cannot resolve 'file' or 'directory' #4

Closed nomgbr closed 7 years ago

nomgbr commented 7 years ago

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