Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

无法使用可选链 #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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants