Repository navigation
Commit cbb0389
authored
Replace
When running through the `(require ... :reload)` example, I got an error message from Node:
SyntaxError: Identifier 'sayHello$$module$src$js$hello' has already been declared
at /home/rei/repos/hello-es6/.cljs_node_repl/src/js/hello.js:1:1
at ContextifyScript.Script.runInThisContext (vm.js:26:33)
at Object.exports.runInThisContext (vm.js:79:17)
at nodeGlobalRequire (repl:85:6)
at global.CLOSURE_IMPORT_SCRIPT (repl:75:3)
at Object.goog.require (repl:21:8)
at repl:1:6
at ContextifyScript.Script.runInThisContext (vm.js:26:33)
at Object.exports.runInThisContext (vm.js:79:17)
at Domain.<anonymous> ([stdin]:50:34)
This was due to the fact that Node (my version is 7.4.0) disallows redefinining anything declared with a `let`. Cf: nodejs/node#6118
This commit replace any `export let` with an `export var` which can be refined without error.export let with export var
1 parent 4ea3c8e commit cbb0389
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
| 309 | + | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| |||
0 commit comments