es6 modules problem
Reported by
fsx950...@gmail.com,
Sep 18 2017
|
|||||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36
Steps to reproduce the problem:
1. npm install material-components-web
2. import {MDCToolbar} from 'node_modules/@material/toolbar/index.js';
3. run web page
What is the expected behavior?
import success
What went wrong?
es6 import doesn't work well with mdc
Did this work before? No
Chrome version: 61.0.3163.91 Channel: stable
OS Version: 10.0
Flash Version:
,
Sep 18 2017
,
Sep 18 2017
,
Sep 19 2017
Tagging with Triage help label as this require dev team help.
,
Sep 25 2017
,
Sep 25 2017
,
Oct 3 2017
This is working as intended. In the browser, imported module specifiers must be URL-like (and are resolved as URLs). The example module here tries to import from "@material/base", which is invalid per the HTML spec.
,
Oct 5 2017
There are a lot of packages use import in this way.How to compatible them 2017年10月4日 上午4:59,"ad… via monorail" <monorail+v2.3002369578@chromium.org |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by fsx950...@gmail.com
, Sep 18 2017131 KB
131 KB View Download
152 KB
152 KB View Download