node-ical icon indicating copy to clipboard operation
node-ical copied to clipboard

The request of a dependency is an expression with React

Open nobobo1234 opened this issue 4 years ago • 2 comments

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?

nobobo1234 avatar Aug 31 '21 12:08 nobobo1234

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.

LunaSquee avatar Oct 05 '21 07:10 LunaSquee

Is there any progress on this one?

simonedelmann avatar May 11 '23 08:05 simonedelmann