我第一次打开了这个项目并试图用ember serve
运行它我在这里看到了几个关于相同错误的答案,他们的解决方案没有解决这个问题问题
堆栈跟踪中的所有文件都没有指向任何应用程序源文件。任何人都可以放弃任何光明吗?
Cannot read property 'replace' of undefined
TypeError: Cannot read property 'replace' of undefined
at CoreObject.module.exports.massageVersionNumber (C:\Users\Adam Copley\Desktop\pop-two\node_modules\ember-welcome-page\index.js:110:19)
at CoreObject.module.exports.included (C:\Users\Adam Copley\Desktop\pop-two\node_modules\ember-welcome-page\index.js:28:31)
at CoreObject.superWrapper [as included] (C:\Users\Adam Copley\Desktop\pop-two\node_modules\ember-cli\node_modules\core-object\lib\assign-properties.js:32:18)
at EmberApp.<anonymous> (C:\Users\Adam Copley\Desktop\pop-two\node_modules\ember-cli\lib\broccoli\ember-app.js:468:15)
at Array.filter (native)
at EmberApp._notifyAddonIncluded (C:\Users\Adam Copley\Desktop\pop-two\node_modules\ember-cli\lib\broccoli\ember-app.js:463:45)
at new EmberApp (C:\Users\Adam Copley\Desktop\pop-two\node_modules\ember-cli\lib\broccoli\ember-app.js:138:8)
at module.exports (C:\Users\Adam Copley\Desktop\pop-two\ember-cli-build.js:7:13)
at CoreObject.module.exports.Task.extend.setupBroccoliBuilder (C:\Users\Adam Copley\Desktop\pop-two\node_modules\ember-cli\lib\models\builder.js:74:19)
at CoreObject.module.exports.Task.extend.init (C:\Users\Adam Copley\Desktop\pop-two\node_modules\ember-cli\lib\models\builder.js:54:10)
答案 0 :(得分:1)
我遇到了同样的问题并通过删除ember-welcome-page
模块(yarn remove ember-welcome-page
)解决了这个问题。在那之后,一切都运行良好!我的其他依赖项都没有任何问题。