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

Error when dev #1

Closed
erguotou520 opened this issue Dec 4, 2016 · 2 comments
Closed

Error when dev #1

erguotou520 opened this issue Dec 4, 2016 · 2 comments

Comments

@erguotou520
Copy link

error when run npm run dev

ERROR in ./app/src/App.vue
Module build failed: TypeError: this._init is not a function
    at Object.Vue$2 (/path/electron-vue-webpack/node_modules/.2.1.4@vue/dist/vue.runtime.common.js:3318:8)
 @ ./app/src/entry.js 2:0-27
@hifizz
Copy link

hifizz commented Dec 21, 2016

@erguotou520 I get this Error too. But I has get the answer from this issue:Module build failed: TypeError: this._init is not a function.But in this project,there are two errors.

Fix the bug is easy.just change the code

{
                test: /\.vue$/,
                loader: 'vue'
            },
            {
                test: /\.(png|jpg|gif|svg)$/,
                loader: 'file',
                query: {
                    name: '[name].[ext]?[hash]'
                }
            }

to

{
                test: /\.vue$/,
                loader: 'vue-loader'
            },
            {
                test: /\.(png|jpg|gif|svg)$/,
                loader: 'file-loader',
                query: {
                    name: '[name].[ext]?[hash]'
                }
            }

Bingo!

@renato-rg
Copy link
Owner

Fixed in #2

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

3 participants