Skip to content

Strange behavior related with file name. #145

@b12k

Description

@b12k

Hi there!
Today I updated vue-loader to the latest version and got a very strange problem...
I have an error including a Vue component which include word user.vue
Console says:

ERROR in D:/CDT/Dev/CarDealerTool/CarDealerTool.WebSite/SPA/src/components/navigation/users-menu.vue.html
Module parse failed: D:\CDT\Dev\CarDealerTool\CarDealerTool.WebSite\SPA\node_modules\vue-loader\index.js!D:\CDT\Dev\CarDealerTool\CarDealerTool.WebSite\SPA\src\components\navigation\users-menu.vue.html Line 6: Unexpected token ILLEGAL
You may need an appropriate loader to handle this file type.
|     __vue_script__.__esModule &&
|     Object.keys(__vue_script__).length > 1) {
|   console.warn("[vue-loader] ..\..\CDT\Dev\CarDealerTool\CarDealerTool.WebSite\SPA\src\components\navigation\users-menu.vue.html: named exports in *.vue files are ignored.")}
| __vue_template__ = require("-!vue-html-loader!./../../../node_modules/vue-loader/lib/selector.js?type=template&index=0!./users-menu.vue.html")
| module.exports = __vue_script__ || {}
 @ D:/CDT/Dev/CarDealerTool/CarDealerTool.WebSite/SPA/~/babel-loader!D:/CDT/Dev/CarDealerTool/CarDealerTool.WebSite/SPA/~/vue-loader/lib/selector.js?type=script&index=0!D:/CDT/Dev/CarDealerTool/CarDealerTool.WebSite/SPA/src/components/header.vue.html 15:20-63

I tried different variations of names. Originally it was "user-menu.vue.html" and it worked perfectly with previous version of vue-loader.

I just checked vue-loader v8.0.2 in it works, but v8.0.3 doesnt.
I think this issue some hove related with hot-module-replacement because is happens only in "dev: mode. I'm still able to build a "production" version, without all this fancy hot-reload and with uglification... you know =)

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