content icon indicating copy to clipboard operation
content copied to clipboard

Workers incompatibility

Open pi0 opened this issue 1 year ago • 2 comments

Noticed from https://github.com/nuxt/framework/issues/6541#issuecomment-1212996801 that we have problematic dependencies such as csvtojson that do not work well with worker platforms such as cloudflare workers.

Issue with csvtojson>bluebird can probably be directly handled with unenv but made this issue to investigate more items might be incompatible with workers as they are an important target with Nuxt3, we either can create a test in content that tests it or basically fail and document content module is only working static or with Node.js (at least for the moment)

pi0 avatar Aug 12 '22 11:08 pi0

Can you take a look at this @farnabaz ?

Atinux avatar Aug 16 '22 09:08 Atinux

Example for testing worker target: https://github.com/unjs/nitro/blob/main/test/presets/cloudflare.test.ts

pi0 avatar Aug 16 '22 09:08 pi0