We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is the error i'm getting:
> Using @sveltejs/adapter-node Circular dependency: node_modules/contentful-management/dist/es-modules/entities/index.js -> node_modules/contentful-management/dist/es-modules/entities/app-definition.js -> node_modules/contentful-management/dist/es-modules/create-app-definition-api.js -> node_modules/contentful-management /dist/es-modules/entities/index.js Circular dependency: node_modules/contentful-management/dist/es-modules/entities/app-definition.js -> node_modules/contentful-management/dist/es-modules/create-app-definition-api.js -> node_modules/contentful-management/dist/es-modules/entities/app-definition.js Circular dependency: node_modules/contentful-management/dist/es-modules/entities/index.js -> node_modules/contentful-management/dist/es-modules/entities/entry.js -> node_modules/contentful-management/dist/es-modules/create-entry-api.js -> node_modules/contentful-management/dist/es-modules/e ntities/index.js Circular dependency: node_modules/contentful-management/dist/es-modules/entities/index.js -> node_modules/contentful-management/dist/es-modules/entities/environment.js -> node_modules/contentful-management/dist/es-modules/create-environment-api.js -> node_modules/contentful-management/dist/ es-modules/entities/index.js Circular dependency: node_modules/contentful-management/dist/es-modules/entities/index.js -> node_modules/contentful-management/dist/es-modules/entities/environment.js -> node_modules/contentful-management/dist/es-modules/create-environment-api.js -> node_modules/contentful-management/dist/ es-modules/entities/ui-config.js -> node_modules/contentful-management/dist/es-modules/create-ui-config-api.js -> node_modules/contentful-management/dist/es-modules/entities/index.js Circular dependency: node_modules/contentful-management/dist/es-modules/entities/index.js -> node_modules/contentful-management/dist/es-modules/entities/environment.js -> node_modules/contentful-management/dist/es-modules/create-environment-api.js -> node_modules/contentful-management/dist/ es-modules/entities/user-ui-config.js -> node_modules/contentful-management/dist/es-modules/create-user-ui-config-api.js -> node_modules/contentful-management/dist/es-modules/entities/index.js Circular dependency: node_modules/contentful-management/dist/es-modules/entities/index.js -> node_modules/contentful-management/dist/es-modules/entities/environment-template.js -> node_modules/contentful-management/dist/es-modules/create-environment-template-api.js -> node_modules/contentfu l-management/dist/es-modules/entities/index.js Circular dependency: node_modules/contentful-management/dist/es-modules/entities/index.js -> node_modules/contentful-management/dist/es-modules/entities/organization.js -> node_modules/contentful-management/dist/es-modules/create-organization-api.js -> node_modules/contentful-management/dis t/es-modules/entities/index.js Circular dependency: node_modules/contentful-management/dist/es-modules/entities/index.js -> node_modules/contentful-management/dist/es-modules/entities/space.js -> node_modules/contentful-management/dist/es-modules/create-space-api.js -> node_modules/contentful-management/dist/es-modules/e ntities/index.js error during build: RollupError: "default" is not exported by "node_modules/contentful-management/dist/es-modules/contentful-management.js", imported by ".svelte-kit/adapter-node/entries/pages/sverdle/_page.server.ts.js". at error (file:///home/carlo/workspace/test-app/node_modules/rollup/dist/es/shared/node-entry.js:2125:30) at Module.error (file:///home/carlo/workspace/test-app/node_modules/rollup/dist/es/shared/node-entry.js:13438:16) at Module.traceVariable (file:///home/carlo/workspace/test-app/node_modules/rollup/dist/es/shared/node-entry.js:13845:29) at ModuleScope.findVariable (file:///home/carlo/workspace/test-app/node_modules/rollup/dist/es/shared/node-entry.js:12404:39) at ReturnValueScope.findVariable (file:///home/carlo/workspace/test-app/node_modules/rollup/dist/es/shared/node-entry.js:6965:38) at ChildScope.findVariable (file:///home/carlo/workspace/test-app/node_modules/rollup/dist/es/shared/node-entry.js:6965:38) at MemberExpression.bind (file:///home/carlo/workspace/test-app/node_modules/rollup/dist/es/shared/node-entry.js:9317:49) at CallExpression.bind (file:///home/carlo/workspace/test-app/node_modules/rollup/dist/es/shared/node-entry.js:5738:23) at CallExpression.bind (file:///home/carlo/workspace/test-app/node_modules/rollup/dist/es/shared/node-entry.js:9668:15) at ExpressionStatement.bind (file:///home/carlo/workspace/test-app/node_modules/rollup/dist/es/shared/node-entry.js:5738:23)
This is from a fresh install of a TS version of a svelte kit with it's demo app.
npm create svelte@latest my-app
npm i -D contentful-management @sveltejs/adapter-node
'@sveltejs/adapter-auto';
'@sveltejs/adapter-node';
import contentful from 'contentful-management';
const aa = contentful.createClient({ accessToken: 'foo' });
npm run build
It will seem like it's working until the > Using @sveltejs/adapter-node then the error occurs.
> Using @sveltejs/adapter-node
Note: I've also tried it with @sveltejs/adapter-deno and the same issue occurs.
@sveltejs/adapter-deno
How do i fix this?
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: