Skip to content

🐛 BUG: Using @astrojs/mdx with astro.config.ts fails to start #4078

Closed
@ghost

Description

What version of astro are you using?

1.0.0-rc.1

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm

What operating system are you using?

Linux

Describe the Bug

In with-mdx example, changing the config file to astro.config.ts throws an error:

 error   No "exports" main defined in /home/pinanek23/workspace/dev/bug/mdx-ts/node_modules/estree-walker/package.json
    at new NodeError (node:internal/errors:372:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:472:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:693:7)
    at resolveExports (node:internal/modules/cjs/loader:482:36)
    at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/pinanek23/workspace/dev/bug/mdx-ts/node_modules/estree-util-build-jsx/lib/index.js:23:28)

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-akf9du?file=astro.config.ts

Participation

  • I am willing to submit a pull request for this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

- P3: minor bugAn edge case that only affects very specific usage (priority)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions