如果出现找不到模块”node:process“,一定是node版本问题,安装14.19以上,建议安装长期稳定版
[!] RollupError: Node tried to load your configuration file as CommonJS even though it is likely an ES module. To resolve this, change the extension of your configuration to ".mjs", set "type": "module" in your package.json file or pass the "--bundleConfigAsCjs" flag.
Original error: Cannot use import statement outside a module
可以加package.json 里添加 "type" :"module" 就可以解决
————————————————
版权声明:本文为CSDN博主「阿咩_」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_67619405/article/details/129316022