javascript - browserify 'Error: Cannot find module' in trying to fix 'Uncaught reference error: require is not defined' -


I'm releasing Rachel to a very similar, or almost accurate, thread () about unwanted reference error In. However, when I '(for browser)' instructions as given in my instructions () and shown below (I have also included my directory for reference) ...

  Myname@comname: ~ / workspace / my app $ browser / api_scripts/controllers/main.js & gt; Bundle.js  

I'm getting a 'module' error.

  error: module can not be found '/ app / scripts / controllers Load from /main.js '/ user / myname / workspace / MyApp' /usr/local/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:35:25 (/ Usr / local /lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:53:43) on / usr / local / lib / node_modules / browserify / node_modules / browser-resolve / node_modules / Object at /usr/local/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:16:47 at resolutions / lib on /async.js:59:22 Comcom (fs.js: 107: 15)  

How do I get this error?

You are using a full path: / app / scripts / controllers / main .js You probably want app / script / controller / main.js .


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -