Open baocang opened 6 years ago
@baocang to be clear are you talking about moving the contents of the existing script tag (i.e. the class definition) out of the script tag, which is inside a dom-module tag, and pasting it as is into demo-app.js
then trying to import it as a module?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
Versions & Environment
Steps to Reproduce
polymer init polymer-2-application
namedpolymer-demo
demo-app.js
with es6 syntax<script type="module" src="./demo-app.js"></script>
polymer serve --npm --open --open-path / --compile always
Expected Results
No error is throw and load
demo-app.js
fromhttp://127.0.0.1:8081/src/demo-app/demo-app.js
Actual Results
Error is thrown and load
demo-app.js
fromhttp://127.0.0.1:8081/demo-app.js
with404 Not found