Michal JanekFront End Web Development Techdegree Graduate 30,653 Points
Anyone else experiencing require not defined issue?
I am working with WebStorm editor and found out we are not supposed to do these things in browser since require is defined in Node.js when handling server in back-end, not in client browser part.
I have read about browserify, requirejs packages but this is getting a bit overwhelming.
Anyone willing to shed some light?
Also ...I am troubleshooting a lot of issues trying to do this in my own IDE, maybe because of lack of skills. Usually it was easy to switch from Treehouse workspaces into our own editors but this is proving to be a messy operation.
Rich Zimmerman24,062 Points
In workspaces, you're effectively logging into a server and running the console and a built in IDE on the server you're logged in to. If you're using your own IDE, you're running it on your local machine (your pc). I'm not familiar with WebStorm but i know a lot of IDEs have a console built in, you would just have to install nodejs on your local machine and run the console in your IDE, or from your command prompt.
It may take some troubleshooting to set up which is why workspaces are so convenient while you're learning the coding side of the industry... the troubleshooting is a headache that comes later. =)