Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'scripts' of undefined #1

Open
maksimkurb opened this issue Jun 18, 2017 · 2 comments
Open

TypeError: Cannot read property 'scripts' of undefined #1

maksimkurb opened this issue Jun 18, 2017 · 2 comments
Assignees
Labels

Comments

@maksimkurb
Copy link

You should handle situation when plugin don't have background.scripts or content_scripts.js keys in manifest.js

chrome-dev-webpack-plugin - error: TypeError: Cannot read property 'scripts' of undefined
  at manifestSync.sync.then (.../node_modules/chrome-dev-webpack-plugin/lib/chrome-dev-webpack-plugin.js:136:34)
  ...
@slawo
Copy link
Owner

slawo commented Jun 20, 2017

@maksimkurb Hi. This is not a situation I had to deal with so far... I will look into it.

@slawo slawo self-assigned this Jun 20, 2017
@slawo slawo added the bug label Jun 20, 2017
@cawa-93
Copy link

cawa-93 commented Oct 5, 2017

Yeap. This is my manifest.json

{
  "chrome_settings_overrides" : {
    "homepage": "index.html"
  },
  "chrome_url_overrides" : {
    "newtab": "index.html"
  },
  "permissions": [
    "history",
    "webRequest",
    "sessions",
    "storage",
    "topSites"
  ]
}

I use webpack and vue for build and get follow error:

chrome-dev-webpack-plugin - error: TypeError: Cannot read property 'scripts' of undefined
    at manifestSync.sync.then (D:\Develop\ff-start-page\ff-start\node_modules\chrome-dev-webpack-plugin\lib\chrome-dev-webpack-plugin.js:136:34)
    at tryCatcher (D:\Develop\ff-start-page\ff-start\node_modules\bluebird\js\main\util.js:26:23)
    at Promise._settlePromiseFromHandler (D:\Develop\ff-start-page\ff-start\node_modules\bluebird\js\main\promise.js:510:31)
    at Promise._settlePromiseAt (D:\Develop\ff-start-page\ff-start\node_modules\bluebird\js\main\promise.js:584:18)
    at Async._drainQueue (D:\Develop\ff-start-page\ff-start\node_modules\bluebird\js\main\async.js:128:12)
    at Async._drainQueues (D:\Develop\ff-start-page\ff-start\node_modules\bluebird\js\main\async.js:133:10)
    at Immediate.Async.drainQueues (D:\Develop\ff-start-page\ff-start\node_modules\bluebird\js\main\async.js:15:14)
    at runCallback (timers.js:781:20)
    at tryOnImmediate (timers.js:743:5)
    at processImmediate [as _immediateCallback] (timers.js:714:5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants