mazipan / vue2-simplert

⚠️ Vue 2 Simple Alert Component (SweetAlert Inspired)

Home Page:https://vue2-simplert.gitbook.io/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR can't load Simplert.vue

canonigi opened this issue · comments

HI,
tried to install your wonderful package but error occurs as follow

ERROR in ./node_modules/vue2-simplert/src/Simplert.vue
    Module parse failed: [...]\node_modules\vue2-simplert\src\Simplert.vue Unexpected token (1:0)
    You may need an appropriate loader to handle this file type.
    | <template>
    |   <div class="simplert" role="modal" :class="classSimplert" @click="closeOverlay">
    |     <div class="simplert__content" :class="classContent">
     @ ./node_modules/vue2-simplert/src/main-dist.js 1:0-37
     @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./_src/views/fields/Index.vue
     @ ./_src/views/fields/Index.vue
     @ ./_src/router/routes.js
     @ ./_src/router/index.js
     @ ./_src/boot-app.js

package.json
"vue2-simplert": "^0.5.5"

Tnx.

I can't reproduce this issue, this is maybe your webpack setup

Ok, this is my webpack
webpack.config.txt
vuejs works correctly with vue-loader for my file *.vue

Do you have try Plugin version ?
here : https://github.com/mazipan/vue2-simplert-plugin

I recommend using this version for complex project.

All functionality was same, but with no more duplication initialization.

Ok. I'll try this I'll keep it up to date,
Tnx.

Fine! Plugin works correctly!
Thank you for your support.
Best regards, James

May you want to give your ⭐ in this project https://github.com/mazipan/vue2-simplert-plugin

Thanks

Closed here : 126ac44
with version 0.5.7