-
Notifications
You must be signed in to change notification settings - Fork 86
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
Module parse failed #72
Comments
You need to have |
vue-loader has already been installed. Here are my package.json dependencies: |
and My webpack.config.js const path = require('path'); module.exports = (env) => { |
Seems i had the same issue. But i'm always getting some error related to: The only way that i could found to compile is using: But this definitely shouldn't be a solution :( |
Thanks for your inputs. We're working on SweetModal 3.0 at the moment which will feature a proper loading mechanism as well as many many many fixes to Webpack and a few features. Can't announce a time frame yet, though. |
import SweetModal from 'sweet-modal-vue/dist/sweet-modal'; Seems does not work for me (returns an empty object). How did you achieve this ? |
@shlima sorry, can't remember what I did exactly. But i gave up from SweetModal and goes with vue-js-modal |
I have made UMD compatible build: yarn add @shlima/sweet-modal-vue import { SweetModal } from '@shlima/sweet-modal-vue/dist/sweet-modal.umd' |
I'm currently exploring this package and I'm having the same issue. I just call the component directly
|
Error in in ./~/sweet-modal-vue/src/components/SweetModal.vue:
Module parse failed: ...\SweetModal.vue Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
|
| <!--
| SweetModal for Vue.js
The text was updated successfully, but these errors were encountered: