-
Notifications
You must be signed in to change notification settings - Fork 132
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
import { Hooper, Slide } from 'hooper'; will make an error #40
Comments
if you found this same problem simply you can open node moduls --> dist --> hopper.esm.js go to the line 366 and change this.defaults = (...this.$props, ...this.settings} to this.defaults = this.$props, this.settings I am not sure that it is correct, but its work for me |
Hi, I have the same issue using with vue.js then i solve with a similar quote:
So, the feature to read The solution was use an pre-compiled code instead the npm package source. |
This fixed in version |
…at#40 - new mergeObjects method in utils.js to use them instead 'object spreads' or 'Object.assign'
Hi @abdelrahman3d , these commited changes |
When I want to import this import { Hooper, Slide } from 'hooper';
The vue cli will show this erorr:
error in ./~/hooper/dist/hooper.esm.js
Module parse failed: D:\node\my-project\node_modules\hooper\dist\hooper.esm.js Unexpected token (336:23)
You may need an appropriate loader to handle this file type.
| initDefaults () {
| this.breakpoints = this.settings.breakpoints;
| this.defaults = {...this.$props, ...this.settings};
| this.$settings = this.defaults;
| },
@ ./
/babel-loader/lib!.//vue-loader/lib/selector.js?type=script&index=0!./src/components/Plan_a_trip_en.vue 156:0-39@ ./src/components/Plan_a_trip_en.vue
@ ./src/router/index.js
@ ./src/main.js
@ multi ./build/dev-client ./src/main.js
Can somebody help me please
The text was updated successfully, but these errors were encountered: