Halo-Lab / eleventy-packages

Monorepo for all Eleventy plugins.
24 stars 1 forks source link

[eleventy-plugin-styles] Cannot find module 'util/types' #3

Closed lwojcik closed 2 years ago

lwojcik commented 2 years ago

I get the following error message while running npx @11ty/eleventy:

`Error was thrown: Error: Cannot find module 'util/types' Require stack:

It happens in v1.4.0. Reverting to v1.3.3 fixes the problem.

Looks like it's related to Rollup config calling util/types as an external. I'll maybe try to have a look at it later next week.

Kapelianovych commented 2 years ago

Hi! Thank you for the issue. It's strange. util/types is valid module that is exposed from the API. What version of the Node do you use?

lwojcik commented 2 years ago

Oh shoot, I had v14 loaded in nvm. Switched to v16 and it now works fine. :)