Open tiddle opened 1 year ago
Okie, so as a work around you can do the following:
import * as contentful from 'contentful-management';
then in your function you can do:
return contentful.default.createClient(
{
accessToken: 'foo'
},
It still has the Circular Dependency warnings, but it does compile.
This is the error i'm getting:
This is from a fresh install of a TS version of a svelte kit with it's demo app.
Steps to reproduce:
npm create svelte@latest my-app
npm i -D contentful-management @sveltejs/adapter-node
'@sveltejs/adapter-auto';
to'@sveltejs/adapter-node';
import contentful from 'contentful-management';
npm run build
It will seem like it's working until the
> Using @sveltejs/adapter-node
then the error occurs.Note: I've also tried it with
@sveltejs/adapter-deno
and the same issue occurs.How do i fix this?