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
Generating code for TemplateRoot node failed. Error: TypeError: Cannot read property 'type' of null
Context
class{subscribeToNewsletter(e){return;// <-- The culprit}}<macrotest(arg)><p>${arg}</p></macro><div><test('email')/></div>
Additional Info
Your Environment
Version used: v4.0.0
Environment name and version (e.g. Chrome 39, node.js 5.4): node 6.9.1
Stack Trace
[marko-starter init] Error starting server. Error: Generating code for TemplateRoot node failed. Error: TypeError: Cannot read property 'type' of null
at module.exports (/Users/tapwater/p/src/marko-issue/node_modules/raptor-util/createError.js:7:50)
at CodeGenerator._invokeCodeGenerator (/Users/tapwater/p/src/marko-issue/node_modules/marko/compiler/CodeGenerator.js:138:19)
at CodeGenerator._generateCode (/Users/tapwater/p/src/marko-issue/node_modules/marko/compiler/CodeGenerator.js:219:38)
at CodeGenerator.generateCode (/Users/tapwater/p/src/marko-issue/node_modules/marko/compiler/CodeGenerator.js:263:14)
at Compiler.compile (/Users/tapwater/p/src/marko-issue/node_modules/marko/compiler/Compiler.js:162:38)
at _compile (/Users/tapwater/p/src/marko-issue/node_modules/marko/compiler/index.js:89:33)
at Object.compileFile (/Users/tapwater/p/src/marko-issue/node_modules/marko/compiler/index.js:136:16)
at loadFile (/Users/tapwater/p/src/marko-issue/node_modules/marko/runtime/loader/index-default.js:94:34)
at doLoad (/Users/tapwater/p/src/marko-issue/node_modules/marko/runtime/loader/index-default.js:146:24)
at load (/Users/tapwater/p/src/marko-issue/node_modules/marko/runtime/loader/index-default.js:5:16)
Caused by: TypeError: Cannot read property 'type' of null
at convert (/Users/tapwater/p/src/marko-issue/node_modules/marko/compiler/util/parseJavaScript.js:24:20)
at convert (/Users/tapwater/p/src/marko-issue/node_modules/marko/compiler/util/parseJavaScript.js:206:32)
at convert (/Users/tapwater/p/src/marko-issue/node_modules/marko/compiler/util/parseJavaScript.js:15:33)
at convert (/Users/tapwater/p/src/marko-issue/node_modules/marko/compiler/util/parseJavaScript.js:59:28)
at convert (/Users/tapwater/p/src/marko-issue/node_modules/marko/compiler/util/parseJavaScript.js:120:28)
at convert (/Users/tapwater/p/src/marko-issue/node_modules/marko/compiler/util/parseJavaScript.js:199:29)
at convert (/Users/tapwater/p/src/marko-issue/node_modules/marko/compiler/util/parseJavaScript.js:15:33)
at convert (/Users/tapwater/p/src/marko-issue/node_modules/marko/compiler/util/parseJavaScript.js:188:34)
at convert (/Users/tapwater/p/src/marko-issue/node_modules/marko/compiler/util/parseJavaScript.js:102:24)
at convert (/Users/tapwater/p/src/marko-issue/node_modules/marko/compiler/util/parseJavaScript.js:183:28)
The text was updated successfully, but these errors were encountered:
patrick-steele-idem
changed the title
Compile error when returning from class method and using a macro
Compile error when class method has empty return
Mar 7, 2017
Bug Report
Generating code for TemplateRoot node failed. Error: TypeError: Cannot read property 'type' of null
Context
Additional Info
Your Environment
Stack Trace
The text was updated successfully, but these errors were encountered: