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

Pirate Praveen praveen at onenetbeyond.org
Fri Oct 25 13:24:52 BST 2019



On 2019, ഒക്‌ടോബർ 25 6:35:39 AM IST, Nicolas Mora <nicolas at babelouest.org> wrote:
>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. 

Which all presets did you try? May be you missed the required build dependency but it is locally installed.

Check if all *-loader packages in you local system is in build deps.

>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
>
>
>-- 
>Pkg-javascript-devel mailing list
>Pkg-javascript-devel at alioth-lists.debian.net
>https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



More information about the Pkg-javascript-devel mailing list