Skip to content

Does that mean vue-style-loader does not support async vue components ?  #9

Open
@zhushichong

Description

@zhushichong

// direct css import from js --> direct (how does this work when inside an async chunk? ...just don't do it)

I use async vue components. It works well in production. But when i modify code and repackaging,errors occured because it tried to load a module that does not exist

`
housing-list?city=350200&locCity=:1 TypeError: Cannot read property 'call' of undefined
at webpack_require (:50:30)
at eval (index.vue?.//extract-text-webpack-plugin/loader.js?{"omit":1,"remove":true}!.//vue-style-loader!.//css-loader?autoprefixer=false!.//vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-6f36600c","scoped":true,"hasInlineConfig":true}!.//less-loader!.//vue-loader/lib/selector.js?type=styles&index=0&bustCache:4)
at Object.615 (async-0.js?478733d7f6b739563c1b:37)
at webpack_require (:50:30)
at VueComponent.injectStyle (index.vue:8)
at callHook (vue.common.js:2819)
at VueComponent.Vue._init (vue.common.js:4474)
at new VueComponent (vue.common.js:4648)
at createComponentInstanceForVnode (vue.common.js:4165)
at init (vue.common.js:3982)

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions