Skip to content
This repository was archived by the owner on Apr 9, 2020. It is now read-only.

Template is not a function #105

@ngoyal16

Description

@ngoyal16

/home/ubuntu/node_project/technovendors/brainfock/node_modules/babel-plugin-react-transform/lib/index.js:61
var wrapperFunctionTemplate = template('\n function WRAPPER_FUNCTION_ID(ID_PARAM) {\n return function(COMPONENT_PARAM) {\n return EXPRESSION;\n };\n }\n ');
^

TypeError: template is not a function
at exports.default (/home/ubuntu/node_project/technovendors/brainfock/node_modules/babel-plugin-react-transform/lib/index.js:61:33)
at Function.memoisePluginContainer (/home/ubuntu/node_project/technovendors/brainfock/node_modules/babel-core/lib/transformation/file/plugin-manager.js:77:23)
at PluginManager.add (/home/ubuntu/node_project/technovendors/brainfock/node_modules/babel-core/lib/transformation/file/plugin-manager.js:209:30)
at File.buildTransformers (/home/ubuntu/node_project/technovendors/brainfock/node_modules/babel-core/lib/transformation/file/index.js:237:21)
at new File (/home/ubuntu/node_project/technovendors/brainfock/node_modules/babel-core/lib/transformation/file/index.js:139:10)
at Pipeline.transform (/home/ubuntu/node_project/technovendors/brainfock/node_modules/babel-core/lib/transformation/pipeline.js:164:16)
at Object.transformFileSync (/home/ubuntu/node_project/technovendors/brainfock/node_modules/babel-core/lib/api/node.js:137:37)
at compile (/home/ubuntu/node_project/technovendors/brainfock/node_modules/babel-core/lib/api/register/node.js:132:20)
at normalLoader (/home/ubuntu/node_project/technovendors/brainfock/node_modules/babel-core/lib/api/register/node.js:199:14)
at Object.require.extensions.(anonymous function) [as .js] (/home/ubuntu/node_project/technovendors/brainfock/node_modules/babel-core/lib/api/register/node.js:216:7)

I am getting this..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions