visma-meglerfront / sweet-modal-vue

The sweetest library to happen to modals.
Other
755 stars 85 forks source link

Import error with Webpack #33

Closed nate250 closed 6 years ago

nate250 commented 7 years ago

When I follow the basic installation instructions, I get an error: Uncaught SyntaxError: Unexpected token import in sweet-modal-view/src/main.js. I believe this is because my build (based on a Vue 2.0 starter project) does not support transpiling node modules.

When I edit sweet-modal-vue's package.json to point to the dist folder as other vue component modules do, the exported object is empty.

bluefirex commented 6 years ago

Fixed in c05fb535b10cb39d2bfa17c218d198471a1e37da, released in v2.0.0