0
PS C:\Users\Codey55\temp> npm run build

> todomvc-flux@0.0.3 build C:\Users\Codey55\temp
> set NODE_ENV=production browserify . | uglifyjs -cm > js/bundle.min.js

PS C:\Users\Codey55\temp> npm start

> todomvc-flux@0.0.3 start C:\Users\Codey55\temp
> watchify -o js/bundle.js -v -d .

Error: Cannot find module 'C:\User\Codey55\temp' from 'C:\Users\Codey55\temp'

I'm trying to run this TodoMVC React tutorial on my Windows PC but i can't seem to get through the first steps of setting up the project. I've googled around and tried to add a NODE_PATH in system variable with no results, does anyone know what the problem is ?

Community
  • 1
  • 1
Codey_55
  • 33
  • 1
  • 3

1 Answers1

1

I had the same issue and I solved it by renaming my old react component files which were .jsx to standard .js. I read in another thread that I lost in the meantime that require works only with standard .js extensions.

Alex Moldovan
  • 2,336
  • 1
  • 16
  • 14