Cannot resolve 'file' or 'directory' ./firebase-browser.js' at server launch
See original GitHub issueI’d appreciate any insight on this. I’m on Ember 2.11.1. Emberfire 2.0.5 loads fine but after upgrading to 2.0.6 it can’t find firebase-browser.js. I can go back and forth between the two with the same results.
I am not able to duplicate the problem in a new app even after adding in all of my addons. I have cleaned caches, deleted dist, tmp, node_modules, and bower_components and reinstalled with no luck. I’ve also updated all of my addons.
Here’s the entire error:
Livereload server on http://localhost:49155
Serving on http://localhost:4200/
Entry module not found: Error: Cannot resolve 'file' or 'directory' ./firebase-browser.js in /Users/max/Sites/fran-stack/tmp/webpack_writer-input_base_path-DN7k0h3y.tmp/0
resolve file
/Users/max/Sites/fran-stack/tmp/webpack_writer-input_base_path-DN7k0h3y.tmp/0/firebase-browser.js doesn't exist
/Users/max/Sites/fran-stack/tmp/webpack_writer-input_base_path-DN7k0h3y.tmp/0/firebase-browser.js.webpack.js doesn't exist
/Users/max/Sites/fran-stack/tmp/webpack_writer-input_base_path-DN7k0h3y.tmp/0/firebase-browser.js.web.js doesn't exist
/Users/max/Sites/fran-stack/tmp/webpack_writer-input_base_path-DN7k0h3y.tmp/0/firebase-browser.js.js doesn't exist
/Users/max/Sites/fran-stack/tmp/webpack_writer-input_base_path-DN7k0h3y.tmp/0/firebase-browser.js.json doesn't exist
resolve directory
/Users/max/Sites/fran-stack/tmp/webpack_writer-input_base_path-DN7k0h3y.tmp/0/firebase-browser.js doesn't exist (directory default file)
/Users/max/Sites/fran-stack/tmp/webpack_writer-input_base_path-DN7k0h3y.tmp/0/firebase-browser.js/package.json doesn't exist (directory description file) 0 [ 'Entry module not found: Error: Cannot resolve \'file\' or \'directory\' ./firebase-browser.js in /Users/max/Sites/fran-stack/tmp/webpack_writer-input_base_path-DN7k0h3y.tmp/0\nresolve file\n /Users/max/Sites/fran-stack/tmp/webpack_writer-input_base_path-DN7k0h3y.tmp/0/firebase-browser.js doesn\'t exist\n /Users/max/Sites/fran-stack/tmp/webpack_writer-input_base_path-DN7k0h3y.tmp/0/firebase-browser.js.webpack.js doesn\'t exist\n /Users/max/Sites/fran-stack/tmp/webpack_writer-input_base_path-DN7k0h3y.tmp/0/firebase-browser.js.web.js doesn\'t exist\n /Users/max/Sites/fran-stack/tmp/webpack_writer-input_base_path-DN7k0h3y.tmp/0/firebase-browser.js.js doesn\'t exist\n /Users/max/Sites/fran-stack/tmp/webpack_writer-input_base_path-DN7k0h3y.tmp/0/firebase-browser.js.json doesn\'t exist\nresolve directory\n /Users/max/Sites/fran-stack/tmp/webpack_writer-input_base_path-DN7k0h3y.tmp/0/firebase-browser.js doesn\'t exist (directory default file)\n /Users/max/Sites/fran-stack/tmp/webpack_writer-input_base_path-DN7k0h3y.tmp/0/firebase-browser.js/package.json doesn\'t exist (directory description file)' ]
The Broccoli Plugin: [BroccoliMergeTrees] failed with:
TypeError: Cannot read property 'stack' of null
at /Users/max/Sites/fran-stack/node_modules/broccoli-builder/lib/builder.js:164:24
at tryCatch (/Users/max/Sites/fran-stack/node_modules/rsvp/dist/rsvp.js:538:12)
at invokeCallback (/Users/max/Sites/fran-stack/node_modules/rsvp/dist/rsvp.js:553:13)
at publish (/Users/max/Sites/fran-stack/node_modules/rsvp/dist/rsvp.js:521:7)
at publishRejection (/Users/max/Sites/fran-stack/node_modules/rsvp/dist/rsvp.js:456:3)
at flush (/Users/max/Sites/fran-stack/node_modules/rsvp/dist/rsvp.js:2373:5)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
The broccoli plugin was instantiated at:
at BroccoliMergeTrees.Plugin (/Users/max/Sites/fran-stack/node_modules/broccoli-plugin/index.js:7:31)
at new BroccoliMergeTrees (/Users/max/Sites/fran-stack/node_modules/broccoli-merge-trees/index.js:42:10)
at BroccoliMergeTrees (/Users/max/Sites/fran-stack/node_modules/broccoli-merge-trees/index.js:36:53)
at Class.treeForVendor (/Users/max/Sites/fran-stack/node_modules/emberfire/index.js:52:12)
at Class._treeFor (/Users/max/Sites/fran-stack/node_modules/ember-cli/lib/models/addon.js:362:33)
at Class.treeFor (/Users/max/Sites/fran-stack/node_modules/ember-cli/lib/models/addon.js:330:21)
at /Users/max/Sites/fran-stack/node_modules/ember-cli/lib/broccoli/ember-app.js:522:20
at Array.map (native)
at EmberApp.addonTreesFor (/Users/max/Sites/fran-stack/node_modules/ember-cli/lib/broccoli/ember-app.js:520:30)
at EmberApp._processedVendorTree (/Users/max/Sites/fran-stack/node_modules/ember-cli/lib/broccoli/ember-app.js:975:29)
I wish I could reproduce this elsewhere. Thanks for any suggestions anyone might have.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:6
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Issues - GitHub
firebase-browser.js' at server launch Cannot resolve 'file' or 'directory' ./firebase-browser.js' at server launch on Mar 1, 2017.
Read more >Webpack Error - Cannot Resolve File or Directory
I found an answer in github Error : ERROR in Entry module not found: Error: Cannot resolve 'file' or 'directory'#981. But sadly, in...
Read more >cannot resolve directory of all the import
All dependencies are synchronized. To do it, go to any .go file, hover over the import and press Alt(Option)+Enter, then select "Sync ...
Read more >Using module bundlers with Firebase - Google
When a module bundler processes the source code it will produce the bundle.js file in the dist folder. The bundle.js is a combination...
Read more >webpack "Module not found: Error: Cannot resolve 'file' or ...
I just run gulp serve in the react-todo-basic and it showed the following versions, plus the npm: Project react-todo-basic version: 0.0.1 Build ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had the problem again and this time had to specify
npm install firebase@3.9.0
I fixed this with a “npm install firebase”