0
我想把我的第一次節點的應用程序準備生產服務器設置節點應用生產服務器。使用巴貝爾
構建和服務腳本我基礎上,通過babel
"scripts": {
"start": "nodemon --exec babel-node server.js --ignore public/",
"build": "babel server.js -o server_compiled.js",
"serve": "node server_compiled.js",
"dev": "webpack -wd"
給予}
npm run build
按預期工作
npm run serve
導致錯誤:
some/path/config.js:3
export default{
^^^^^^
SyntaxError: Unexpected token export
這是從我引用在server.js端口主機和數據庫配置文件。
難道我還建立這個文件或我做了什麼錯?
任何幫助表示讚賞。