【发布时间】:2016-11-24 11:01:13
【问题描述】:
我在我的网站中集成了条带 API。我使用 stripe、express 和 http-browserify 创建了 bundle.js。并遇到了这个错误:
bundle.js:50930 Uncaught TypeError: require(...).createServer is not a 功能 在对象处。
在 Object.require.stripe.../package.json
在 bundle.js:1:262 在/post.html:11:14(匿名函数)
@bundle.js:50930require.stripe.../package.json
@bundle.js:51112s
@bundle.js:1(匿名函数)@post.html:11
当我点击错误时,它会给出错误:
Stripe.DEFAULT_TIMEOUT = require('http').createServer().timeout;
【问题讨论】:
-
你没有得到读取超时值的地方,你做了那个把戏? (:
标签: node.js stripe-payments browserify