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

abspath isn't working properly #1772

Closed
Nyle opened this issue May 23, 2015 · 2 comments
Closed

abspath isn't working properly #1772

Nyle opened this issue May 23, 2015 · 2 comments

Comments

@Nyle
Copy link

Nyle commented May 23, 2015

Even when using the -p option vulcanize still is looking for references beginning with "/" at the root of my fs. To make sure it wasn't related to the project I'm working on, I made a directory "test" with the following files:

test.html

<!DOCTYPE html>
<html>
  <head>
    <link rel="import" href="/a.html">
  </head>
  <body>
  </body>
</html>

a.html

<polymer-element name="a">
  <template>
  </template>
</polymer-element>

While in the same directory as the test directory is located vulcanize -p"test/" /test.html gives me

/usr/local/lib/node_modules/vulcanize/node_modules/hydrolysis/lib/loader/fs-resolver.js:21
      throw err;
            ^
Error: ENOENT, open 'test.html'
    at Error (native)

vulcanize -p"test/" test/test.html gives

/usr/local/lib/node_modules/vulcanize/node_modules/hydrolysis/lib/loader/fs-resolver.js:21
      throw err;
            ^
Error: ENOENT, open '/a.html'
    at Error (native)

I have also tried giving an absolute path to the test directory, running vulcanize from within the test directory and using --abspath instead of -p. If I create an empty file /a.html, vulcanize -p"test/" test/test.html runs just fine, printing

<!DOCTYPE html><html><head><meta charset="UTF-8">
    </head>
  <body>


</body></html>

I'm using version 1.6.0 of vulcanize, installed via npm using sudo npm install -g vulcanize and am running all of this on OSX 10.10.3.

@aleclofabbro
Copy link

I'm experiencing the same issue with vulcanize 1.8.1 on Ubuntu 14.04

@aleclofabbro
Copy link

found out that the exteded option works:
vulcanize --abspath=test/ test.html

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

No branches or pull requests

3 participants