Answer the question
In order to leave comments, you need to log in
How to organize React + Jade interaction?
Module: https://www.npmjs.com/package/react-pug
When trying to import: import pug from "react-pug";
Error:
ERROR in ./~/static-module/~/escodegen/package.json
Module parse failed: node_modules/static-module/node_modules/escodegen/package.json Unexpected token (2:9)
You may need an appropriate loader to handle this filetype.
import template from "template.jade";
render() {
return template();
}
Answer the question
In order to leave comments, you need to log in
Your collector is not configured. He doesn't know what jade is.
If webpack, then look for jade-webpack-loader
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question