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

No matching version found for @myriaddreamin/[email protected] #602

Open
OverflowCat opened this issue Nov 20, 2024 · 5 comments
Open

No matching version found for @myriaddreamin/[email protected] #602

OverflowCat opened this issue Nov 20, 2024 · 5 comments

Comments

@OverflowCat
Copy link

The latest release of @myriaddreamin/rehype-typst is version "0.5.0-rc7", and version rc9 has not been published to npm.

Using an incompatible version with the compiler will result in:

[
  {
    message: '`locate` with callback function is deprecated, hints: use a `context` expression instead',
    package: '',
    path: '/__main__.typ',
    range: { end: [Object], start: [Object] },
    severity: 2
  },
  {
    message: '`locate` with callback function is deprecated, hints: use a `context` expression instead',
    package: '',
    path: '/__main__.typ',
    range: { end: [Object], start: [Object] },
    severity: 2
  },
  {
    message: 'calling `state.final` with a location is deprecated, hints: try removing the location argument',
    package: '',
    path: '/__main__.typ',
    range: { end: [Object], start: [Object] },
    severity: 2
  },
  {
    message: 'calling `measure` with a styles argument is deprecated, hints: try removing the styles argument',
    package: '',
    path: '/__main__.typ',
    range: { end: [Object], start: [Object] },
    severity: 2
  },
  {
    message: '`style` is deprecated, hints: use a `context` expression instead',
    package: '',
    path: '/__main__.typ',
    range: { end: [Object], start: [Object] },
    severity: 2
  },
  {
    message: 'can only be used when context is known, hints: try wrapping this in a `context` expression, the `context` expression should wrap everything that depends on this function',
    package: '',
    path: '/__main__.typ',
    range: { end: [Object], start: [Object] },
    severity: 1
  },
  {
    message: 'while calling final',
    package: '',
    path: '/__main__.typ',
    range: { end: [Object], start: [Object] },
    severity: 4
  }
]
01:11:32 [ERROR] Spread syntax requires ...iterable[Symbol.iterator] to be a function
@Myriad-Dreamin
Copy link
Owner

I published them just now. Could you check it again?

@OverflowCat
Copy link
Author

Still gets the same error using "@myriaddreamin/rehype-typst": "0.5.0-rc9", when rendering an empty $ block.

@Myriad-Dreamin
Copy link
Owner

perhaps same issue as #603

@kimhanm
Copy link
Contributor

kimhanm commented Dec 17, 2024

Can confirm this is the same issue. Looking at https://github.com/Myriad-Dreamin/typst.ts/blob/v0.5.1/projects/rehype-typst/lib/index.js, it seems that the patches to lib/index.js from #604 and #615 have not been included in the 0.5.0-rc9 to 0.5.1 tags.
These were only merged into the main branch last week.

@Myriad-Dreamin
Copy link
Owner

Myriad-Dreamin commented Dec 29, 2024

@OverflowCat is it working now (v0.5.2)?

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

3 participants