Open TimvdLippe opened 6 years ago
import { Element as PolymerElement } from '../@polymer/polymer/polymer-element.js'; this path is not proper.
it should be like this. import { Element as PolymerElement } from '@polymer/polymer/polymer-element.js';
or
import { Element as PolymerElement } from '../node_modules/@polymer/polymer/polymer-element.js';
@StepFischer, I think the problem is the import of Polymer Because your source is one level down in the src/
folder, you need two ../
s to reach out of the project folder.
import { Element as PolymerElement } from '../../@polymer/polymer/polymer-element.js';
Can you try that and report back?
I guess you can close this ticket, because it is obsolete now.
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.
From @StepFischer on January 10, 2018 14:24
Description
When I am trying to go through the steps to experiment with polymer 3 preview (branch: 3.0-preview) and serve the example provided with
polymer serve --npm
, I get the errorin a chromium based browser.
I also tried to use
polymer serve --npm -v
and saw it is still trying to usebower_components
folder inextraDependencies
The file structure created from the provided example is:
The content of the files are: my-app.js
index.html
package.json
Not flat property in here because I used --flat to add dependencies with yarn
Live Demo
http://jsbin.com/luhaxab/1/edit
Steps to Reproduce
yarn init
yarn add @polymer/polymer@next --flat
polymer serve --npm
Expected Results
The example prints the "Hello World!" text.
Actual Results
Error:
Browsers Affected
Versions
Copied from original issue: Polymer/polymer#5033