create-scandipwa-app icon indicating copy to clipboard operation
create-scandipwa-app copied to clipboard

Create Scandipwa App Bug

Open kghori36 opened this issue 3 years ago • 26 comments

Failed to compile. ./node_modules/@scandipwa/scandipwa/src/index.js 35:7 Module parse failed: Unexpected token (35:7) File was processed with these loaders:

  • ./node_modules/@tilework/mosaic-webpack-import-loader/index.js You may need an additional loader to handle the result of these loaders. | } |

render(<App />, document.getElementById('root')); |

I am Getting this error when i run npm run start command after installed csa on my machine Terminal Shows me Above Error

kghori36 avatar Jul 02 '21 07:07 kghori36

Hi, thanks for your report!

I was unable to reproduce the issue you describe. When creating a new app (npx create-scandipwa-app test-app), entering the directory (cd test-app/) and running the app (npm run start), everything works as expected.

Could you please provide additional details?

  • Which OS are you using?
  • Node and npm version
  • Exact steps you took (exact commands)

Perhaps it would also be helpful if you attached your package-lock.json

Thank you!

rMazeiks avatar Jul 05 '21 08:07 rMazeiks

i am using windows 10 enterprise version node version - 14.17.0 npm version - 6.14.13 cmd : npx create-scandipwa-app my-app

kghori36 avatar Jul 05 '21 09:07 kghori36

Hi, thanks for your report!

I was unable to reproduce the issue you describe. When creating a new app (npx create-scandipwa-app test-app), entering the directory (cd test-app/) and running the app (npm run start), everything works as expected.

Could you please provide additional details?

  • Which OS are you using?
  • Node and npm version
  • Exact steps you took (exact commands)

Perhaps it would also be helpful if you attached your package-lock.json

Thank you!

still it is not working same issue.

kghori36 avatar Jul 05 '21 10:07 kghori36

Hi there,

I'm having the same issue:

Windows 10 Pro 21H1 (Build 19043.1165) node v14.17.5 npm v6.14.14 yarn v1.22.11

When issuing command npx create-scandipwa-app my-app and yarn is installed, then running yarn start produces error like in the OP.

Same command but without yarn (so npm is used), then npm run start will produce

> scandipwa-scripts start

Error: Cannot find module '@tilework/mosaic-craco'

After installing missing package (npm i -D @tilework/mosaic-craco) and running npm run start produces error like in the OP.

please change extensions yarn.lock.txt package-lock.json.txt

I have also noticed that yarn.lock is generated even when yarn is not installed.

Nightliss avatar Aug 18 '21 12:08 Nightliss

I have same problem : node : 14.17.5 npm : 6.14.14 OS : ubuntu 20

after run npm run build or start i get the following error

Error: Cannot find module '@tilework/mosaic-craco'
Require stack:
- /var/www/test-store/src/localmodule/my-app/node_modules/@scandipwa/service-worker/build-config/lib/workbox-babel-plugin.js
- /var/www/test-store/src/localmodule/my-app/node_modules/@scandipwa/service-worker/build-config/workbox-dev.js
- /var/www/test-store/src/localmodule/my-app/node_modules/@tilework/mosaic-cra-scripts/lib/build-plugins.js
- /var/www/test-store/src/localmodule/my-app/node_modules/@tilework/mosaic-cra-scripts/lib/craco.js
- /var/www/test-store/src/localmodule/my-app/node_modules/@tilework/mosaic-cra-scripts/bin/cra-scripts.js
- /var/www/test-store/src/localmodule/my-app/node_modules/@scandipwa/scandipwa-scripts/bin/scandipwa-scripts.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)
    at Function.Module._load (internal/modules/cjs/loader.js:745:27)
    at Module.require (internal/modules/cjs/loader.js:961:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at Object.<anonymous> (/var/www/test-store/src/localmodule/my-app/node_modules/@scandipwa/service-worker/build-config/lib/workbox-babel-plugin.js:3:38)
    at Module._compile (internal/modules/cjs/loader.js:1072:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
    at Module.load (internal/modules/cjs/loader.js:937:32)
    at Function.Module._load (internal/modules/cjs/loader.js:778:12)
    at Module.require (internal/modules/cjs/loader.js:961:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/var/www/test-store/src/localmodule/my-app/node_modules/@scandipwa/service-worker/build-config/lib/workbox-babel-plugin.js',
    '/var/www/test-store/src/localmodule/my-app/node_modules/@scandipwa/service-worker/build-config/workbox-dev.js',
    '/var/www/test-store/src/localmodule/my-app/node_modules/@tilework/mosaic-cra-scripts/lib/build-plugins.js',
    '/var/www/test-store/src/localmodule/my-app/node_modules/@tilework/mosaic-cra-scripts/lib/craco.js',
    '/var/www/test-store/src/localmodule/my-app/node_modules/@tilework/mosaic-cra-scripts/bin/cra-scripts.js',
    '/var/www/test-store/src/localmodule/my-app/node_modules/@scandipwa/scandipwa-scripts/bin/scandipwa-scripts.js'
  ]
}


ERROR!

     Failed to load extension`s @scandipwa/service-worker craco-plugins script.
     Looked in /var/www/test-store/src/localmodule/my-app/node_modules/@scandipwa/service-worker/build-config/workbox-dev.js file.
     See detailed error log above.

ahmedalmulki avatar Aug 19 '21 14:08 ahmedalmulki

Im also getting the same error

amiyoghoshstar avatar Aug 31 '21 05:08 amiyoghoshstar

@amiyoghoshstar just run npm install @tilework/mosaic-craco or use yarn

ahmedalmulki avatar Aug 31 '21 08:08 ahmedalmulki

i have not resovled this issue but it has something to do with OS. on centos 7 i have already configured it it is working fine the same code and same npm and nodejs version are configured on windows it give the op error. i am still trouble shooting it but looks some path issue on windows.

devteamnau avatar Sep 10 '21 12:09 devteamnau

getting the same issue on windows 10

./node_modules/@scandipwa/scandipwa/src/index.js 35:7 Module parse failed: Unexpected token (35:7) File was processed with these loaders:

  • ./node_modules/@tilework/mosaic-webpack-import-loader/index.js You may need an additional loader to handle the result of these loaders. | } |

render(<App />, document.getElementById('root')); |

bytepattern avatar Sep 13 '21 13:09 bytepattern

getting the same issue on windows 10

./node_modules/@scandipwa/scandipwa/src/index.js 35:7 Module parse failed: Unexpected token (35:7) File was processed with these loaders:

  • ./node_modules/@tilework/mosaic-webpack-import-loader/index.js You may need an additional loader to handle the result of these loaders. | } |

render(, document.getElementById('root')); |

Also getting this issue.

discostu001 avatar Sep 14 '21 08:09 discostu001

Failed to compile. ./node_modules/@scandipwa/scandipwa/src/index.js 35:7 Module parse failed: Unexpected token (35:7) File was processed with these loaders:

  • ./node_modules/@tilework/mosaic-webpack-import-loader/index.js You may need an additional loader to handle the result of these loaders. | } |

render(, document.getElementById('root')); |

I am Getting this error when i run npm run start command after installed csa on my machine Terminal Shows me Above Error

getting same error https://prnt.sc/1ve1kmn

vikaskamboj321 avatar Oct 09 '21 04:10 vikaskamboj321

Same exact issue. Installed successfully on a Ubuntu machine, but on two sepparate windows 10 machines - the exact same error. It doesn't matter what node version - I've tried everything:

  • installed everything with and without administrator rights
  • ran it with and without admin rights
  • with or without yarn
  • from CMD and PowerShell
  • on the desktop and also on the root system folder (c:\app)
  • Even imported a working project from a MacOS system Everything results in the exact same error:

./node_modules/@scandipwa/scandipwa/src/index.js 35:7 Module parse failed: Unexpected token (35:7) File was processed with these loaders:

  • ./node_modules/@tilework/mosaic-webpack-import-loader/index.js You may need an additional loader to handle the result of these loaders. | } |

render(<App />, document.getElementById('root')); |

alex-iordache avatar Oct 15 '21 15:10 alex-iordache

HI Scandi, Good Day!

I am also getting the same issue ::

./node_modules/@scandipwa/scandipwa/src/index.js 35:7 Module parse failed: Unexpected token (35:7) File was processed with these loaders:

  • ./node_modules/@tilework/mosaic-webpack-import-loader/index.js You may need an additional loader to handle the result of these loaders. | } |

render(<App />, document.getElementById('root')); |

Please help us to solve it

Thank you

amikamboj avatar Oct 23 '21 20:10 amikamboj

Same issue. Its windows spesific issue. In my linux machine its working properly.

Failed to compile.

./node_modules/@scandipwa/scandipwa/src/index.js 35:7 Module parse failed: Unexpected token (35:7) File was processed with these loaders:

  • ./node_modules/@tilework/mosaic-webpack-import-loader/index.js You may need an additional loader to handle the result of these loaders. | } |

render(<App />, document.getElementById('root'));

Santheepkumar avatar Oct 24 '21 12:10 Santheepkumar

Hello,

I have the same issue with windows 10.

Failed to compile ./node_modules/@scandipwa/scandipwa/src/index.js 35:7 Module parse failed: Unexpected token (35:7) File was processed with these loaders:

  • ./node_modules/@tilework/mosaic-webpack-import-loader/index.js You may need an additional loader to handle the result of these loaders. | } |

render(<App />, document.getElementById('root')); |

fjaatheen avatar Oct 25 '21 06:10 fjaatheen

Same issue always getting this error when running npm start :

./node_modules/@scandipwa/scandipwa/src/index.js 35:7 Module parse failed: Unexpected token (35:7) File was processed with these loaders:

  • ./node_modules/@tilework/mosaic-webpack-import-loader/index.js You may need an additional loader to handle the result of these loaders. | } |

render(<App />, document.getElementById('root')); |

OS : Windows 10.0.19041 N/A Build 19041 Node version : 14.15.5 NPM version : 8.1.1

Mohammed-Elmorsy avatar Oct 28 '21 09:10 Mohammed-Elmorsy

Same issue always getting this error when running npm start :

./node_modules/@scandipwa/scandipwa/src/index.js 35:7 Module parse failed: Unexpected token (35:7) File was processed with these loaders:

./node_modules/@tilework/mosaic-webpack-import-loader/index.js You may need an additional loader to handle the result of these loaders. | } | render(, document.getElementById('root')); |

OS : Windows 10 Node version : 14.15.1 NPM version : 6.14.8

rishigupta121 avatar Nov 02 '21 21:11 rishigupta121

Same issue too!

Failed to compile.

./node_modules/@scandipwa/scandipwa/src/index.js 28:7
Module parse failed: Unexpected token (28:7)
File was processed with these loaders:
 * ./node_modules/@tilework/mosaic-webpack-import-loader/index.js
You may need an additional loader to handle the result of these loaders.
| }
|
> render(<App />, document.getElementById('root'));
|

OS : Windows 10 Node version : 14.15.1 NPM version : 6.14.8

Ylmzef avatar Nov 22 '21 15:11 Ylmzef

Getting same error

Failed to compile.

./node_modules/@scandipwa/scandipwa/src/index.js 105:7
Module parse failed: Unexpected token (105:7)
File was processed with these loaders:
 * ./node_modules/@tilework/mosaic-webpack-import-loader/index.js
You may need an additional loader to handle the result of these loaders.
| }
| 
> render(<App />, document.getElementById('root'));
|

OS: Ubuntu 20.04 Node: v14.18.2 npm: 6.14.15 Any help at all would be appreciable

Davsiavll avatar Dec 13 '21 14:12 Davsiavll

Getting same error: node-error

OS: WIndows 10 Node: v14.18.0 npm: 8.3.0 Can anyone fix this issue.

#scandipwa

hardik38 avatar Feb 14 '22 10:02 hardik38

Hi I am also getting same error please help solve

/var/www/websites/my-first-ap> npm start Failed to compile.

./node_modules/@scandipwa/scandipwa/src/index.js 28:7
Module parse failed: Unexpected token (28:7)
File was processed with these loaders:
 * ./node_modules/@tilework/mosaic-webpack-import-loader/index.js
You may need an additional loader to handle the result of these loaders.
| }
|
> render(, document.getElementById('root'));
|

rudracomputech avatar Feb 20 '22 13:02 rudracomputech

I'm getting the same error

luluhoc avatar Mar 29 '22 15:03 luluhoc

I'm getting the same error

Hi Do you have any solution for this?

louis8663 avatar Apr 02 '22 04:04 louis8663

Hi anyone solve this issue? can help please!!! NEED HELP from someone is kind.

louis8663 avatar Apr 03 '22 15:04 louis8663

Failed to compile.

./node_modules/@scandipwa/scandipwa/src/index.js 28:7 Module parse failed: Unexpected token (28:7) File was processed with these loaders:

  • ./node_modules/@tilework/mosaic-webpack-import-loader/index.js You may need an additional loader to handle the result of these loaders. | } |

render(<App />, document.getElementById('root'));

STILL NO ONE IS ABLE TO RESOLVE THIS ISSUE ?

aamirxia avatar May 13 '22 05:05 aamirxia

Follow this link https://github.com/scandipwa/scandipwa/issues/3299.

thechiefishere avatar May 19 '22 20:05 thechiefishere