You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ember serve is currently broken — Cannot read property 'replace' of undefined #7870
ember serve no longer works with the most recent version of Canary.
It can be reproduced as simply as by creating a new application and upgrading ember-cli to the latest version.
ember new classic-error --yarn
yarn upgrade ember-cli@https://github.com/ember-cli/ember-cli.git
Now it displays this error when running ember serve
Here is the full stack from the error log file
- stack: TypeError: Cannot read property 'replace' of undefined
at Class.serverMiddleware (/Users/username/classic-error/node_modules/ember-cli-inject-live-reload/index.js:44:38)
at ExpressServerTask.<anonymous> (/Users/username/classic-error/node_modules/ember-cli/lib/tasks/server/express-server.js:101:22)
at /Users/username/classic-error/node_modules/promise-map-series/index.js:11:14
at tryCatch (/Users/username/classic-error/node_modules/rsvp/dist/rsvp.js:525:12)
at invokeCallback (/Users/username/classic-error/node_modules/rsvp/dist/rsvp.js:538:13)
at publish (/Users/username/classic-error/node_modules/rsvp/dist/rsvp.js:508:7)
at flush (/Users/username/classic-error/node_modules/rsvp/dist/rsvp.js:2415:5)
at process._tickCallback (internal/process/next_tick.js:112:11)
Activity
rwjblue commentedon Jun 9, 2018
/cc @thoov @stefanpenner
buschtoens commentedon Jun 10, 2018
Also experiencing this. But only for a module unification addon. Works fine for a regular addon. 🤔
buschtoens commentedon Jun 10, 2018
Nevermind. I did not upgrade the classic addon as described by @chrism. After upgrading, I experience the same error in a classic addon.
buschtoens commentedon Jun 10, 2018
#7861
rwjblue commentedon Jun 14, 2018
Fixed by #7875