在上一个工作项目的Mac上工作后,将我的存储库下载到Windows机器上,yarn install
经过编译并成功编译后,我得到了
Error: Cannot find module './locale'
在运行时,除了错误报告之外,没有看到太多在线信息,有人遇到了吗?
答案 0 :(得分:0)
请尝试将此插件添加到您的webpack配置文件中:
import json
import os
from flask import Flask
from flask import request
from flask import make_response`
`enter code here # Flask app should start in global layout
app = Flask(__name__)
@app.route('/webhook', methods=['POST'])
def webhook():
req = request.get_json(silent=True, force=True)
res = processRequest(req)
res = json.dumps(res, indent=4)
r = make_response(res)
r.headers['Content-Type'] = 'application/json'
return r
def processRequest(req):
result = req.get("queryResult")
result_message = result['fulfillmentText']
print(result_message)
@app.route('/test', methods=['GET'])
def test():
return "Hello there my friend !!"
if __name__ == '__main__':
port = int(os.getenv('PORT', 5000))
app.run(debug=True, port=port, host='0.0.0.0')`
确保一切都在运行时正常工作
答案 1 :(得分:0)
这是新问题。
尝试降级您的moment
版本
在package.json
"dependencies": {
"moment": "2.24.0",
},
"resolutions": {
"moment": "2.24.0"
}