vue-cropper icon indicating copy to clipboard operation
vue-cropper copied to clipboard

Nuxt开发环境启动正常,正式环境无法使用

Open MygengBin opened this issue 2 years ago • 4 comments

Nuxt init: npx nuxt-create-app .

npm run dev

dev

npm run build & npm run start

production

MygengBin avatar May 18 '22 19:05 MygengBin

看看文档 nuxt 需要单独配置的

xyxiao001 avatar May 19 '22 09:05 xyxiao001

if(process.browser) { vueCropper = require('vue-cropper') Vue.use(vueCropper.default) }

xyxiao001 avatar May 19 '22 09:05 xyxiao001

if(process.browser) { vueCropper = require('vue-cropper') Vue.use(vueCropper.default) }

我按照文档配置是这样的

/plugins/cropper.js配置

cropper

nuxt.config.js配置

nuxt

运行结果

error

MygengBin avatar May 19 '22 10:05 MygengBin

文檔裡 nuxt 的配置... 是 nuxt2 / nuxt3 ?

看起來不太像是 nuxt3 的配置

lctech-bill avatar Oct 11 '23 11:10 lctech-bill