Closed nishants closed 6 years ago
I also tried ejecting the project and defining loader as :
{ test: /\.pug$/, use: 'pug-as-jsx-loader' },
Doesn't work either.
It worked after I did :
{ test: /\.pug$/, use: [require.resolve('babel-loader'), require.resolve('pug-as-jsx-loader')] },
I used create-react-app to create a new react app that also uses Redux. I imported the pug template as
On importing the pug template, it gives a string instead of a function and fails saying that .call is not defined. Following is the snippet for parent container :
I also see compile warning