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

Relative source path causes NS_ERROR_FILE_UNRECOGNIZED_PATH error #332

Closed
kumar303 opened this issue Jun 29, 2016 · 1 comment
Closed

Relative source path causes NS_ERROR_FILE_UNRECOGNIZED_PATH error #332

kumar303 opened this issue Jun 29, 2016 · 1 comment
Assignees

Comments

@kumar303
Copy link
Contributor

If you run using a relative path to your extension source you'll get an error like this:

$ web-ext run --source-dir beastify/
run: WebExtError: installTemporaryAddon: Error: unknownError: Could not install add-on at 'beastify/': [Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]"  nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)"  location: "JS frame :: resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/addons.js :: AddonsActor<.installTemporaryAddon< :: line 23"  data: no]
    at /Users/kumar/dev/web-ext/dist/webpack:/src/firefox/remote.js:85:29
    at EventEmitter.extend.handleMessage (/Users/kumar/dev/web-ext/node_modules/firefox-client/lib/client.js:161:7)
    at EventEmitter.extend.readMessage (/Users/kumar/dev/web-ext/node_modules/firefox-client/lib/client.js:220:10)
    at EventEmitter.extend.onData (/Users/kumar/dev/web-ext/node_modules/firefox-client/lib/client.js:186:16)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:146:16)
    at Socket.Readable.push (_stream_readable.js:110:10)
    at TCP.onread (net.js:523:20)
@tanettrimas
Copy link

Btw, I still experience this error when using webext plugin on webpack.

To solve this I have to do the following inside webpack.config.js:

plugins: [ new WebExtWebpackPlugin({ sourceDir: path.resolve(__dirname, 'dist'), startUrl: 'https://www.finn.no/realestate/homes/search.html' }), ]

If you type sourceDir: './dist' you will get the error.

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

No branches or pull requests

2 participants