node-ical
node-ical copied to clipboard
The request of a dependency is an expression with React
Hello there,
When I'm adding this project to React and importing it with es6 imports I get the following warning in my log:
./node_modules/node-ical/ical.js
Critical Dependency: the request of a dependency is an expression
Now I suppose this is because of the dynamic import on line 107 of ical.js. Any way to fix this?
I'm not sure why they opted to require that inside a function but in theory you could move the require to the top with the other ones. Move require('path') also in that case.
Is there any progress on this one?