Skip to content

Cannot read property 'styles' of undefined #1972

@candisecandise

Description

@candisecandise

Version

17.0.0

Reproduction link

Steps to reproduce

I wanted to create a vue project with webpack.
I installed vue@2, version was 2.7.0, but I installed the lastest vue-loader, version was 17.0.0.
Then I ran webpack-dev-server --mode development, I got an error:

ERROR in ./src/App.vue
Module build failed (from ./node_modules/vue-loader/dist/index.js):
TypeError: Cannot read property 'styles' of undefined
    at Object.loader (/Users/admin/xxx/node_modules/vue-loader/dist/index.js:70:34)
 @ ./src/main.js 2:0-28 6:17-20

Is it vue@2 cannot be used with vue-loader@17?

What is actually happening?

My project ran failed.

Thanks~

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