Code Monkey home page Code Monkey logo

Comments (7)

prakhar1989 avatar prakhar1989 commented on July 2, 2024

I think the issue is because you're on windows and my node scripts are not windows friendy. The ./ syntax works on Unix machine and is probably the cause of issue. I'm not quite sure how you can run node scripts in Windows.

Can you try running the following command in Windows and see what the output is?
./node_modules/webpack-dev-server/bin/webpack-dev-server.js --progress --colors --port 8090

If this fails, try
node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --progress --colors --port 8090

from react-surveyman.

mohamedRhaiem avatar mohamedRhaiem commented on July 2, 2024

yeah,that is the error, this command return " '.' is not recognized as an internal or external command, operable program or batch file."

from react-surveyman.

prakhar1989 avatar prakhar1989 commented on July 2, 2024

Ah ok.. Expected. Running the command like so -

C:\Program Files (x86)\nodejs\node.exe \node_modules\webpack-dev-server\bin\webpack-dev-server.js --progress --colors --port 8090.

Basically we need to figure out how to run node scripts in Windows

from react-surveyman.

mohamedRhaiem avatar mohamedRhaiem commented on July 2, 2024

know,the error was changed,
module.js:340
throw err;
^
Error: Cannot find module 'C:\node_modules\webpack-dev-server\bin\webpack-dev-se
rver.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3

can be provided by the same issue unrecognized node script with windows ??

from react-surveyman.

prakhar1989 avatar prakhar1989 commented on July 2, 2024

Sorry.. my bad.. try it without the starting slash..
node node_modules/webpack-dev-server/bin/webpack-dev-server.js --progress --colors --port 8090

from react-surveyman.

mohamedRhaiem avatar mohamedRhaiem commented on July 2, 2024

issue resolved,thank you some much,only a last question,this app can run on web browser as a Javascript in html page...,if not,can I try a migration ???

from react-surveyman.

prakhar1989 avatar prakhar1989 commented on July 2, 2024

Great! It actually runs as a single JS file in a HTML page.. you can view the demo. What do you want to migrate it to? Either ways, feel free to use it as you like 😁

from react-surveyman.

Related Issues (20)

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.