i运行npm启动
获取错误
(node:1079) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
/Users/sangkuoh/Desktop/Udacity_FEND_TravelApp-master/src/server/server.js:61
export default { app };
^^^^^^
为什么不起作用?:(
添加
"type": "module"
在package.json中