preprocess icon indicating copy to clipboard operation
preprocess copied to clipboard

ReferenceError: template is not defined

Open chrisathook opened this issue 8 years ago • 1 comments

I keep hitting this error when trying to process a JS file.

There are no syntax errors in the file. Oddly this error only happens with i specify the file type is js

pp.preprocess(preprofile, {ieSupport: false},{type: 'js'});

if I don't declare a type it seems to just pass the file through without processing it at all

pp.preprocess(preprofile, {ieSupport: false});

[15:15:27] ReferenceError: template is not defined at eval (eval at getTestTemplate (G:\DOCS\Out Loud ANEW\internal projects\display-html5-compass\node_modules\preprocess\lib\preprocess.js:362:10), :3:21) at testPasses (G:\DOCS\Out Loud ANEW\internal projects\display-html5-compass\node_modules\preprocess\lib\preprocess.js:367:10)

chrisathook avatar Sep 21 '17 22:09 chrisathook

I hit the same error and a full npm install is what solved it.

stereokai avatar Jul 18 '18 12:07 stereokai