Skip to content
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

got error when use dynamic import #125

Open
deepkolos opened this issue Nov 26, 2018 · 0 comments
Open

got error when use dynamic import #125

deepkolos opened this issue Nov 26, 2018 · 0 comments

Comments

@deepkolos
Copy link

i want to pack a mini router resolver which aim at faster trigger the current route's componet's load, but i got error

const page = view => {
  view instanceof Array && (view = view[0]);

  return () => import(/* webpackChunkName: "page/[request]" */ `../views/pages/${view}`);
};

const cfg = {...};

export default cfg;
Unhandled rejection Error: no such file or directory
    at MemoryFileSystem.writeFileSync (D:\DEV\Github\work\feng-bbs-mobile\node_modules\memory-fs\lib\MemoryFileSystem.js:207:10)
    at D:\DEV\Github\work\feng-bbs-mobile\node_modules\autodll-webpack-plugin\lib\createMemory.js:62:11
    at tryCatcher (D:\DEV\Github\work\feng-bbs-mobile\node_modules\bluebird\js\release\util.js:16:23)
    at Object.gotValue (D:\DEV\Github\work\feng-bbs-mobile\node_modules\bluebird\js\release\reduce.js:155:18)
    at Object.gotAccum (D:\DEV\Github\work\feng-bbs-mobile\node_modules\bluebird\js\release\reduce.js:144:25)
    at Object.tryCatcher (D:\DEV\Github\work\feng-bbs-mobile\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\DEV\Github\work\feng-bbs-mobile\node_modules\bluebird\js\release\promise.js:512:31)
    at Promise._settlePromise (D:\DEV\Github\work\feng-bbs-mobile\node_modules\bluebird\js\release\promise.js:569:18)
    at Promise._settlePromiseCtx (D:\DEV\Github\work\feng-bbs-mobile\node_modules\bluebird\js\release\promise.js:606:10)
    at _drainQueueStep (D:\DEV\Github\work\feng-bbs-mobile\node_modules\bluebird\js\release\async.js:142:12)
    at _drainQueue (D:\DEV\Github\work\feng-bbs-mobile\node_modules\bluebird\js\release\async.js:131:9)
    at Async._drainQueues (D:\DEV\Github\work\feng-bbs-mobile\node_modules\bluebird\js\release\async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (D:\DEV\Github\work\feng-bbs-mobile\node_modules\bluebird\js\release\async.js:17:14)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant