vform666 / variant-form3-vite

Other
1.35k stars 274 forks source link

Nuxt 3: localStorage is not defined #27

Open AnzhiZhang opened 1 year ago

AnzhiZhang commented 1 year ago

I am trying to use this packahe in nuxt3: https://nuxt.com/

[nuxt] [request error] [unhandled] [500] localStorage is not defined                                                                                                                           13:46:28
  at ...\node_modules\vform3-builds\dist\designer.umd.js:2141:45
  at ...\node_modules\vform3-builds\dist\designer.umd.js:17:81
  at Object.<anonymous> (...\node_modules\vform3-builds\dist\designer.umd.js:18:3)
  at Module._compile (node:internal/modules/cjs/loader:1126:14)
  at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
  at Module.load (node:internal/modules/cjs/loader:1004:32)
  at Function.Module._load (node:internal/modules/cjs/loader:839:12)
  at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:170:29)
  at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
  at runMicrotasks (<anonymous>)