New issue
Advanced search Search tips

Issue 755869 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 711706
Owner:
Closed: Aug 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 5785



Sign in to add a comment

chrome canary dynamic import will throw an error

Reported by baitu.hu...@shopeemobile.com, Aug 16 2017

Issue description

Chrome Version       : 
Google Chrome	62.0.3186.0 (正式版本) canary (64 位) (cohort: Clang-64)
修订版本	5609820150169b471ee1da28275ba50e79abc8b2-refs/heads/master@{#494273}
操作系统	Windows
JavaScript	V8 6.2.232
Flash	27.0.0.105 C:\Users\dell\AppData\Local\Google\Chrome SxS\User Data\PepperFlash\27.0.0.105\pepflashplayer.dll
用户代理	Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3186.0 Safari/537.36
命令行	"C:\Users\dell\AppData\Local\Google\Chrome SxS\Application\chrome.exe" --flag-switches-begin --enable-experimental-web-platform-features --javascript-harmony --flag-switches-end
可执行文件路径	C:\Users\dell\AppData\Local\Google\Chrome SxS\Application\chrome.exe
URLs (if applicable) : http://localhost:3001
Other browsers tested:
  other browsers not support dynamic import, "import()" syntax is invalid
 
What steps will reproduce the problem?
(1)just use import(<relative-script-url>).then()

What is the expected result?
the promise will resolve

What happens instead?
the promise is rejected, but can not catch the error with .catch(), only be catched by 
the reject function, this is the error content:
Not supported
    at Object.getComponent (index.js:9)
    at getComponentsForRoute (ReactRouter.js?__imex__=__imex__&query={}&importStr=react-router&importer=%2Fnode_modules%2Freact-router%2Fumd%2FReactRouter.js&moduleType=thirdModule&importType=[{"type"%3A"module"%2C"value"%3A"browserHistory"}%2C{"type"%3A"module"%2C"value"%3A"Router"}]:3817)
    at .... more stack


Please provide any additional information below. Attach a screenshot if
possible.

 
2017-08-16_142554.jpg
151 KB View Download

Comment 1 by kouhei@chromium.org, Aug 16 2017

Mergedinto: 711706
Owner: kouhei@chromium.org
Status: Duplicate (was: Unconfirmed)
Dynamic import is currently under development
ok thanks a lot

2017-08-16 15:45 GMT+08:00 kou… via monorail <
monorail+v2.1163961128@chromium.org>:

Sign in to add a comment