TS errors thrown following Webpack installation


#1

Hey Guys,

So I just installed Webpack in my Nativescript project directory by following the corresponding steps at https://docs.nativescript.org/best-practices/startup-times

However, having done so, the project no longer builds as I get the following errors:

app/vendor.ts(4,31): error TS2339: Property ‘context’ does not exist on type ‘NodeRequire’.
app/vendor.ts(5,8): error TS2339: Property ‘registerWebpackModules’ does not exist on type ‘Global’.

Does anyone have any steps to resolve these please?

Cheers, J :slight_smile:


#2

Are you using some plugins ???
Maybe you are experiencing this issue


#3

@marko89 Hi, thanks for replying. It doesn’t look like that issue is related but when I have a little more time I’ll take another look, just in case I missed something. Will post back if & when I have a solution :slight_smile: J