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

polymer-build error "[UriError]: Scheme is missing" #3432

Closed
govis opened this issue Jun 4, 2019 · 4 comments
Closed

polymer-build error "[UriError]: Scheme is missing" #3432

govis opened this issue Jun 4, 2019 · 4 comments

Comments

@govis
Copy link

govis commented Jun 4, 2019

I have a gulpfile.js that largely mirrors polymer-cli\lib\build\build.js with a few minor tweaks. Unfortunately polymer-build is throwing an error:

Error: Could not load file:///f%3A/x/node_modules/%40polymer/polymer/lib/mixins/element-mixin.js (imported by *bundle*): [UriError]: Scheme is missing: {scheme: "", authority: "", path: "node_modules/@polymer/polymer/lib/mixins/element-mixin.js", query: "", fragment: ""}
    at _validateUri (C:\Users\x\AppData\Roaming\npm\node_modules\polymer-build\node_modules\vscode-uri\lib\umd\index.js:52:23)
    at _URI.URI (C:\Users\x\AppData\Roaming\npm\node_modules\polymer-build\node_modules\vscode-uri\lib\umd\index.js:153:17)
    at new _URI (C:\Users\x\AppData\Roaming\npm\node_modules\polymer-build\node_modules\vscode-uri\lib\umd\index.js:355:51)
    at Function.URI.parse (C:\Users\x\AppData\Roaming\npm\node_modules\polymer-build\node_modules\vscode-uri\lib\umd\index.js:265:20)
    at Object.ensureLeadingDot (C:\Users\x\AppData\Roaming\npm\node_modules\polymer-build\node_modules\polymer-bundler\lib\url-utils.js:40:31)
    at Object.load (C:\Users\x\AppData\Roaming\npm\node_modules\polymer-build\node_modules\polymer-bundler\lib\es6-rewriter.js:123:65)
    at C:\Users\x\AppData\Roaming\npm\node_modules\polymer-build\node_modules\rollup\dist\rollup.js:15429:25
    at processTicksAndRejections (internal/process/task_queues.js:89:5)

This is on Node v12.4.0

@web-padawan
Copy link
Contributor

Appears to be related to microsoft/vscode-uri@7f15d24#r33726484

See also #3425

/cc @usergenic looks like we need to pin vscode-uri to =1.0.6, as I previously suggested.

@aomarks
Copy link
Member

aomarks commented Jun 4, 2019

We recently pinned vscode-uri in #3429. So, we need to do a patch release of any affected tool. I guess at least bundler and cli, maybe some others?

@web-padawan
Copy link
Contributor

FYI linter are modulizer don't seem to be affected (at least they work in our CI with 1.0.8).

@aomarks
Copy link
Member

aomarks commented Jun 4, 2019

We just published [email protected] and [email protected], which I think should cover the affected tools.

@aomarks aomarks closed this as completed Jun 4, 2019
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

3 participants