Skip to content
This repository was archived by the owner on Jul 27, 2021. It is now read-only.

module is undefined #101

Open
fengzilong opened this issue Nov 28, 2019 · 0 comments · May be fixed by #102
Open

module is undefined #101

fengzilong opened this issue Nov 28, 2019 · 0 comments · May be fixed by #102

Comments

@fengzilong
Copy link

fengzilong commented Nov 28, 2019

in builtin formatter moduleNotFound

return module.startsWith('./') || module.startsWith('../');

module here may be undefined in some case

e.g.

function loadPage( path ) {
  return () => import( `@/pages/${ path }.vue` )
}

if alias @ is not set in webpack, it will throw module not found error, but friendly-errors-webpack-plugin didn't catch the error, and all errors will be swallowed

fengzilong added a commit to fengzilong/friendly-errors-webpack-plugin that referenced this issue Nov 28, 2019
@fengzilong fengzilong linked a pull request Nov 28, 2019 that will close this issue
@fengzilong fengzilong changed the title module is not defined module is undefined Nov 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant