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 apps with subdirectories in web fail after pub build #19992
Comments
This comment was originally written by @butlermatt Opps. Forgot details: pubspec.lock is in the repo. |
This comment was originally written by @butlermatt This also occurs with pub build --mode=debug using both Chrome and Dartium: Dartium output: |
This comment was originally written by @zoechi Is this a dupe of https://code.google.com/p/dart/issues/detail?id=18563 ? |
This comment was originally written by @butlermatt No. In Issue #18563 it's relative files and where Chrome/Dartium determine the file is loaded from. For instance, that issue could be resolved by using absolute paths. In this issue it's that the transformers aren't rewriting 'package' in the right location, in particular it seems they're hardcoded to look in the current directory for packages folder, even when other areas of the app explicitly indicate otherwise. |
Set owner to @sigmundch. |
Hey Matt, I think this is a duplicate of: https://code.google.com/p/dart/issues/detail?id=17596 We were actually just about to get to work on fixing it, so I'm expecting the fix will be available soon. |
This issue has been moved to dart-archive/polymer-dart#236. |
This issue was originally filed by @butlermatt
I'm not sure if this is a Polymer transformer bug or a pub bug. When creating a project with an entry point in a subdirectory of web/ then it tests and runs fine, but once you use pub build then you receive a script error trying to load polymer.js file (it's not traversing up to the primary package directory).
To duplicate issue clone this github repo:
https://github.com/butlermatt/subdir_bug
build it, and run:
cd subdir_bug/build/web
python -m SimpleHTTPServer
Open browser to localhost:8000/test/subdir_bug.html
Check the console log.
You'll note the sources all appear to traverse to the parent package/ directory but polymer.js is still looking in the local folder
The text was updated successfully, but these errors were encountered: