wordpress-clients / hybrid

[I don't have time to work on this anymore. Use at your own risk] Build WordPress based PWA, iOS, Android & Windows phones apps in minutes!
MIT License
1.02k stars 348 forks source link

Starting application issue with windows 10 #393

Open mbaljeetsingh opened 6 years ago

mbaljeetsingh commented 6 years ago

I cloned the repo on my local machine and run npm install. But now when I run ionic serve, I'm getting the following error, image

shprink commented 6 years ago

Probably the tsconfig file that is not handled the same way on unix.

https://stackoverflow.com/questions/31173738/typescript-getting-error-ts2304-cannot-find-name-require

You will need to play with the options yourself since I do not own a Windows machine. Let me know once you got it working

Bezaleli commented 6 years ago

Just adding one single line in src\i18n\index.ts solve the issue "declare var require:any"

declare var require: any try { require.context("./", true, /^\.\/.*\.cson$/) } catch (error) { console.error('requireAll', error) }