You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason this is a problem is that when installing modules using pnpm, the node_modules/ directory is organized in a way where packages cannot require any package that is not explicitly declared in their package.json. I'm therefore experiencing an issue where I get an error like this (seen while running tests):
In the current distribution of
@miniflare/core
, the package contains arequire('@miniflare/core')
statement, thereby requiring itself. You can see it in the output here: https://www.npmjs.com/package/@miniflare/core?activeTab=codeon line 181 at the time of this writing.
The reason this is a problem is that when installing modules using
pnpm
, thenode_modules/
directory is organized in a way where packages cannot require any package that is not explicitly declared in theirpackage.json
. I'm therefore experiencing an issue where I get an error like this (seen while running tests):I think this error would go away if the package was updated to not import itself and instead used relative imports of the files it needs
The text was updated successfully, but these errors were encountered: