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

astro check fails after update astro from v4.11.0 to v4.11.3 #11378

Closed
1 task
torn4dom4n opened this issue Jun 30, 2024 · 5 comments
Closed
1 task

astro check fails after update astro from v4.11.0 to v4.11.3 #11378

torn4dom4n opened this issue Jun 30, 2024 · 5 comments
Labels
needs triage Issue needs to be triaged

Comments

@torn4dom4n
Copy link

Astro Info

astro  v4.11.3 Build faster websites.

  astro [command] [...flags]

   Commands
                add  Add an integration.
              build  Build your project and write it to disk.
              check  Check your project for errors.
                 db  Manage your Astro database.
                dev  Start the development server.
               docs  Open documentation in your web browser.
               info  List info about your current Astro setup.
            preview  Preview your build locally.
               sync  Generate content collection types.
        preferences  Configure user preferences.
          telemetry  Configure telemetry settings.

   Studio Commands
              login  Authenticate your machine with Astro Studio.
             logout  End your authenticated session with Astro Studio.
               link  Link this project directory to an Astro Studio project.

   Global Flags
    --config <path>  Specify your config file.
      --root <path>  Specify your project root folder.
       --site <url>  Specify your project site.
  --base <pathname>  Specify your project base.
          --verbose  Enable verbose logging.
           --silent  Disable all logging.
          --version  Show the version number and exit.
             --help  Show this help message.

If this issue only occurs in one browser, which browser is a problem?

Edge

Describe the Bug

Just update astro from 4.11.0 to 4.11.3 and get this issue:

Getting diagnostics for Astro files in /home/runner/work/astro-supernova/astro-supernova...
astro.config.ts:22:7 - error ts(2322): Type 'string | [string, any] | RehypePlugin<any[]> | [RehypePlugin<any[]>, any] | ((options?: Readonly<Options> | null | undefined) => (tree: Root, file: VFile) => undefined) | Plugin<...> | [...]' is not assignable to type 'string | [string, any] | RehypePlugin<any[]> | [RehypePlugin<any[]>, any]'.

 22       [
          ~
 23         rehypeExternalLinks,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
... 
 28         },
    ~~~~~~~~~~
 29       ],
    ~~~~~~~
astro.config.ts:21:7 - error ts(2322): Type 'Plugin<[(RehypeMermaidOptions | undefined)?], Root>' is not assignable to type 'string | [string, any] | RehypePlugin<any[]> | [RehypePlugin<any[]>, any]'.

21       rehypeMermaid,
         ~~~~~~~~~~~~~
astro.config.ts:20:7 - error ts(2322): Type 'string | [string, any] | RehypePlugin<any[]> | [RehypePlugin<any[]>, any] | ((options?: Readonly<Options> | null | undefined) => (tree: Root, file: VFile) => undefined) | Plugin<...> | [...]' is not assignable to type 'string | [string, any] | RehypePlugin<any[]> | [RehypePlugin<any[]>, any]'.

20       rehypeKatex,
         ~~~~~~~~~~~
astro.config.ts:[19](https://github.com/AREA44/astro-supernova/actions/runs/9728883560/job/26851833270#step:6:20):7 - error ts(2322): Type 'string | [string, any] | RehypePlugin<any[]> | [RehypePlugin<any[]>, any] | ((options?: Readonly<Options> | null | undefined) => (tree: Root, file: VFile) => undefined) | Plugin<...> | [...]' is not assignable to type 'string | [string, any] | RehypePlugin<any[]> | [RehypePlugin<any[]>, any]'.
  Type 'Plugin<[(RehypeMermaidOptions | undefined)?], Root>' is not assignable to type 'string | [string, any] | RehypePlugin<any[]> | [RehypePlugin<any[]>, any]'.

19       ...rehypeAutolink(),
         ~~~~~~~~~~~~~~~~~~~

Result (6 files): 
- 4 errors
- 0 warnings
- 0 hints

error: script "build" exited with code 1
Error: Process completed with exit code 1.

Here is the full log.

What's the expected result?

No error

Link to Minimal Reproducible Example

AREA44/astro-supernova@4183f27

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Jun 30, 2024
@florian-lefebvre florian-lefebvre added the needs repro Issue needs a reproduction label Jul 8, 2024
Copy link
Contributor

github-actions bot commented Jul 8, 2024

Hello @torn4dom4n. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs repro will be closed if they have no activity within 3 days.

@github-actions github-actions bot removed the needs triage Issue needs to be triaged label Jul 8, 2024
@torn4dom4n
Copy link
Author

@florian-lefebvre I provided a GitHub repository

@florian-lefebvre
Copy link
Member

Indeed but it's not a minimal reproduction, it's your whole project. It makes things way harder for us so that's way a minimal repro is a requirement

@torn4dom4n
Copy link
Author

torn4dom4n commented Jul 11, 2024

@florian-lefebvre Sorry for that, I hope this can help https://github.com/AREA44/astro-supernova/tree/issue-11378

@florian-lefebvre florian-lefebvre added needs triage Issue needs to be triaged and removed needs repro Issue needs a reproduction labels Jul 11, 2024
@Princesseuh
Copy link
Member

This seems to be specific to Bun, it works fine on pnpm. Additionally, your project is missing the @types/hast package, so one of your imports seems to not work in rehype-autolink plugin. I'd suggest sending an issue to Bun, as Astro does not support Bun officially.

@Princesseuh Princesseuh closed this as not planned Won't fix, can't repro, duplicate, stale Jul 17, 2024
torn4dom4n added a commit to AREA44/astro-supernova that referenced this issue Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants