Closed codingisacopingstrategy closed 10 years ago
It's an error with racer and racer-browserchannel versions. Go to the root project folder and make: rm -rf node_modules npm cache clean npm i then try again
Thanks, that works!
Out of curiosity, how come it sometimes works to clean the npm cache? If code changes, a new version needs to be released, and NPM shouldn’t used the cached version no?
Read the funny story
Moral of the story, when something seems fishy with a module you are installing, you’ve tried everything and nothing else seems to work, clear you cache! It might save you from switching professions.
Hmm, I seem to run into the same problem again!
And this time I effectuated the whole npm remove / cache-clean / re-install procedure…
Chrome Canary
Uncaught TypeError: Cannot read property 'replace' of undefined
codemirror-42c5fa3b215dad52168495e7225a7907.js:16125 TypeError: Cannot read property 'replace' of undefined {stack: (...), message: "Cannot read property 'replace' of undefined"}
codemirror-42c5fa3b215dad52168495e7225a7907.js:14650 Uncaught TypeError: Cannot read property 'replace' of undefined
Firefox 34.0
TypeError: a is undefined
Stack trace:
Showdown.converter/this.makeHtml@http://localhost:8003/showdown/showdown.js:62:1096
require<[3]</</SD.prototype.convert@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:130:14
require<[3]</</SD.prototype.create/<@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:123:5
modelListener@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:11452:5
require<[4]</EventEmitter.prototype.emit@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:234:7
require<[43]</Model.prototype.emit@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:11298:1
subscribeDocCallback@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:13856:1
require<[61]</Doc.prototype._finishSub@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:15555:7
require<[61]</Doc.prototype._handleSubscribe@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:15298:5
require<[61]</Doc.prototype._onMessage@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:15323:7
require<[60]</Connection.prototype.handleMessage@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:14736:7
require<[60]</Connection.prototype.bindToSocket/socket.onmessage@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:14645:7
Channel/socket.onmessage@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:9394:18
require<[12]</Socket.prototype._ws_onmessage@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:2193:21
Tried this on another computer, OS X 10.9.5, fresh git clone, fresh NPM, node v0.10.33.
Same error. Maybe this issue can be re-opened?
In Chrome 39.0.2171.71 the error is:
events.js:59 Uncaught TypeError: Cannot read property 'replace' of undefined
microevent.js:45 TypeError: Cannot read property 'replace' of undefined {stack: (...), message: "Cannot read property 'replace' of undefined"}microevent.js:45 MicroEvent.emitconnection.js:126
socket.onmessageChannel.js:19 Channel.socket.onmessagebrowser.js:63 Socket._ws_onmessage
connection.js:129 Uncaught TypeError: Cannot read property 'replace' of undefined
In Firefox 33.1.1:
TypeError: a is undefined showdown.js:62
TypeError: a is undefined
Trace de la pile :
Showdown.converter/this.makeHtml@http://localhost:8003/showdown/showdown.js:62:1096
require<[3]</</SD.prototype.convert@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:130:14
require<[3]</</SD.prototype.create/<@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:123:5
modelListener@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:11452:5
require<[4]</EventEmitter.prototype.emit@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:234:7
require<[43]</Model.prototype.emit@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:11298:1
subscribeDocCallback@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:13856:1
require<[61]</Doc.prototype._finishSub@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:15555:7
require<[61]</Doc.prototype._handleSubscribe@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:15298:5
require<[61]</Doc.prototype._onMessage@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:15323:7
require<[60]</Connection.prototype.handleMessage@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:14736:7
require<[60]</Connection.prototype.bindToSocket/socket.onmessage@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:14645:7
Channel/socket.onmessage@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:9394:18
require<[12]</Socket.prototype._ws_onmessage@http://localhost:8003/derby/codemirror-42c5fa3b215dad52168495e7225a7907.js:2193:21
codemirror-42c5fa3b215dad52168495e7225a7907.js:16125
I fixed this in the d-showdown component. there was a null-check error where showdown chokes if you try to convert undefined into html :)
npm install d-showdown
should fix it.
Hello!
Cloned the repo, did an
npm install
, changed into thecodemirror
directory and rannode server.js
.The example balks in Chrome Canary with the following traceback:
in the latest Firefox the error message is:
Cheers,