Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to run ngu-sw-manifest #2

Open
chaoranxie opened this issue May 18, 2017 · 3 comments
Open

Failed to run ngu-sw-manifest #2

chaoranxie opened this issue May 18, 2017 · 3 comments

Comments

@chaoranxie
Copy link

I am using hammerjs in my project so there is this line in the app module file. import 'hammerjs';
any idea what i need to do? i thought hammerjs is a pretty common library to include

./node_modules/.bin/ngu-sw-manifest --module src/app/app.module.ts

/Users/chaoranxie/dev/cwm/node_modules/hammerjs/hammer.js:2643
})(window, document, 'Hammer');
   ^
ReferenceError: window is not defined
    at Object.<anonymous> (/Users/chaoranxie/dev/cwm/node_modules/hammerjs/hammer.js:2643:4)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/chaoranxie/dev/cwm/src/app/app.module.ts:16:1)
    at Module._compile (module.js:570:32)
@cars10
Copy link

cars10 commented May 25, 2017

I experience the same issue. Any updates ?

@abnersouza
Copy link

any updates? Im getting this issue with Jquery library installed as well.

@fopnet
Copy link

fopnet commented Feb 11, 2019

i am using ngu-sw-manifest --module src/app/app.module.ts

and i ve got the same error using

hammerjs@^2.0.8.

How can i solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants