[Pkg-javascript-devel] Unable to build a react web application using webpack

Nicolas Mora nicolas at babelouest.org
Fri Oct 25 02:05:39 BST 2019


I have a web application written in react built with weback during the 
packaging.

If I build the package with the command "debuild -b -uc -us", the 
packaging works.
But if I use sbuild to build the package, I have this weird error [1]:

Module parse failed: Unexpected token (38:22)
You may need an appropriate loader to handle this file type.

The coordinates (38:22) points to the jsx code.

I have tried several fixes like adding more presets, polyfill, etc. 
nothing works. What is weirder is that I have the problem when using 
sbuild but not when using debuild.

Does anyone have an idea on how to solve this?

[1] - https://salsa.debian.org/snippets/340




More information about the Pkg-javascript-devel mailing list