jhen0409 / react-chrome-extension-boilerplate

Boilerplate for Chrome Extension React.js project
MIT License
2.14k stars 388 forks source link

Clean clone compress does not work: '../build/manifest.json' not found. #81

Open conanbatt opened 6 years ago

conanbatt commented 6 years ago

fails silently

Upon inspecting, the promise fails when the crx dependency cant resolve the manifest.json within the build folder, even though the file exists.

doityourselfcoding commented 6 years ago

I had the same error when i tried to load the root into chrome, when i should have just done the dev folder.

jgf5013 commented 6 years ago

I installed path and changed the crx.load call in compress.js to this: crx.load(path.join(__dirname, '../build'))

Also added some console logs and try/catches to see what is the script is actually doing.

Hope it helps!