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

无法使用可选链 #73

Open
MssText opened this issue Feb 16, 2022 · 5 comments
Open

无法使用可选链 #73

MssText opened this issue Feb 16, 2022 · 5 comments

Comments

@MssText
Copy link

MssText commented Feb 16, 2022

插件源码中使用了可选链,但是可选链的 node版本需要 14+,文档中是兼容到node 12+,文档需要更新下:

 configResolved(resolvedConfig) {
      needSourcemap = !!resolvedConfig.build.sourcemap;
      external = resolvedConfig?.build?.rollupOptions.external ?? void 0;
    },
@georgeyaacoub
Copy link

georgeyaacoub commented Apr 3, 2022

I am having the same problem. Any solution or workaround please?

@MssText
Copy link
Author

MssText commented Apr 11, 2022

I am having the same problem. Any solution or workaround please?

Maybe upgrading your Node version to 14+ can solve this problem

@georgeyaacoub
Copy link

yup, upgrading to Node 14 solved it. thx

@tangerball
Copy link

tangerball commented May 23, 2022

I have upgraded to Node 16 but it still doesn't solve the problem

@MssText
Copy link
Author

MssText commented May 27, 2022

I have upgraded to Node 16 but it still doesn't solve the problem
upgrading to Node 14

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