vue-upload-multiple-image icon indicating copy to clipboard operation
vue-upload-multiple-image copied to clipboard

Couldn't import in nuxt

Open BEEugene opened this issue 5 years ago • 3 comments
trafficstars

Hi!

I've tried to use the package in Nuxt.js. It worked almost perfectly, when in a dev mode. Unfortunately, I receive this error "Cannot use import statement outside a module"

I've tried to fix it with this https://github.com/WouterFlorijn/vue-stack-grid/issues/11#issuecomment-663921874

image

Any ideas what am I doing wrong?

BEEugene avatar Sep 30 '20 11:09 BEEugene

That is an interesting problem. Here is a sample project If you run it in a dev mode and go to the test page via a button on the home page - you will not get any error. If you will try to go there - the aforementioned error will rise. You also will not able to build this project correctly.

BEEugene avatar Oct 01 '20 12:10 BEEugene

A Github project example.

And my findings on this theme (still some support is needed).

BEEugene avatar Oct 01 '20 14:10 BEEugene

I was able to import it. Here is the description. It will be nice if you add it to the documentation.

BEEugene avatar Oct 02 '20 04:10 BEEugene