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

我在项目中遇见了这个问题 Unexpected token 'export' #24

Closed
zhaorui2000 opened this issue May 21, 2024 · 4 comments
Closed

我在项目中遇见了这个问题 Unexpected token 'export' #24

zhaorui2000 opened this issue May 21, 2024 · 4 comments
Labels
need more info Required more info to be act on

Comments

@zhaorui2000
Copy link

image
@wzhudev
Copy link
Owner

wzhudev commented Jul 10, 2024

这和你设置编译工具链的方式有关,似乎你的编译工具并不支持 esm,但是它也没有引用 redi 内部提供的 UMD 包。

请提供一个能重现此问题的最小复现。

@wzhudev wzhudev added the need more info Required more info to be act on label Jul 10, 2024
@zhaorui2000
Copy link
Author

这和你设置编译工具链的方式有关,似乎你的编译工具并不支持 esm,但是它也没有引用 redi 内部提供的 UMD 包。

请提供一个能重现此问题的最小复现。

https://stackblitz.com/edit/withastro-astro-smrbpt

@wzhudev
Copy link
Owner

wzhudev commented Jul 10, 2024

有一些 package.json 设置不符合 lint,下个版本会修复 https://publint.dev/@wendellhu/redi@0.16.0

@jikkai
Copy link
Collaborator

jikkai commented Jul 10, 2024

这和你设置编译工具链的方式有关,似乎你的编译工具并不支持 esm,但是它也没有引用 redi 内部提供的 UMD 包。
请提供一个能重现此问题的最小复现。

https://stackblitz.com/edit/withastro-astro-smrbpt

客户端脚本不是在 frontmatter 中运行的,请仔细阅读 astro 文档 https://docs.astro.build/zh-cn/guides/client-side-scripts/#%E5%AE%A2%E6%88%B7%E7%AB%AF%E8%84%9A%E6%9C%AC

@jikkai jikkai closed this as completed Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info Required more info to be act on
Projects
None yet
Development

No branches or pull requests

3 participants