Skip to content
New issue

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

Cannot read properties of undefined (reading 'default') #2

Closed
DavidVollmers opened this issue Feb 27, 2023 · 0 comments
Closed

Cannot read properties of undefined (reading 'default') #2

DavidVollmers opened this issue Feb 27, 2023 · 0 comments

Comments

@DavidVollmers
Copy link

I get the following error when trying to integrate this package into an empty astro project.

Astro version: 2.0.15

 error   Cannot read properties of undefined (reading 'default')
  File:
    C:\...\node_modules\vite\dist\node\chunks\dep-ca21228b.js:52420:9
  Code:
    52419 |         const initModule = new AsyncFunction(`global`, ssrModuleExportsKey, ssrImportMetaKey, ssrImportKey, ssrDynamicImportKey, ssrExportAllKey, '"use strict";' + result.code + `\n//# sourceURL=${mod.url}`);
    > 52420 |         await initModule(context.global, ssrModule, ssrImportMeta, ssrImport, ssrDynamicImport, ssrExportAll);
            |         ^
      52421 |     }
      52422 |     catch (e) {
      52423 |         mod.ssrError = e;
  Stacktrace:
TypeError: Cannot read properties of undefined (reading 'default')
    at eval (C:\...\astro.config.mjs:10:27)
    at async instantiateModule (file:///C:/.../node_modules/vite/dist/node/chunks/dep-ca21228b.js:52420:9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant