Closed joanasleet closed 7 years ago
I can't import the module into my code using
require('ng-media-events') import 'ng-media-events'
require('ng-media-events')
import 'ng-media-events'
although the folder with the name ng-media-events exists in node_modules.
The error is Module not found: Can't resolve 'ng-media-events' in ...
Fixed in version 1.0.3 (added main entry in package.json). You should now be able to import it using CJS-style import/require.
main
package.json
import
require
Works nice. Thanks for the quick help!
I can't import the module into my code using
require('ng-media-events')
import 'ng-media-events'
although the folder with the name ng-media-events exists in node_modules.
The error is Module not found: Can't resolve 'ng-media-events' in ...