Closed nathanchase closed 2 years ago
Here's a repro: https://codesandbox.io/s/bold-cookies-gpjuv
@pi0, Can we use this pattern?
- import { readFile, stat, Stats } from 'fs-extra'
+ import fsExtra, { Stats } from 'fs-extra'
+ const { stat, readFile } = fsExtra;
@pi0 isn't this is a quick way to solve this issue?
This is still unfortunately the only thing that is holding me back from using @nuxt/bridge. Is /server/middleware
no longer viable in Nuxt 3 or Bridge?
Yes all our projects too. I really don't understand why this takes so long as this and nuxt/image are official packages from the nuxt team...
fs-extra
was a CommonJS dependency that should be removed from the latest release already and direct usage with Nitro (Nuxt 3 or Nuxt 2 Bridge) possible. I'm working on image module for Nuxt 3.
BTW if you have other problems to use directly with Nuxt3, please use a new issue.
When adding
/server/middleware/ipx.js
tonuxt.config.js
(as indicated at https://image.nuxtjs.org/providers/ipx/#advanced-custom-servermiddleware) while using @nuxt/bridge...it results in an error: