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
constresolve=require('resolve/sync');// prints full path of index.jsconsole.log(`require.resolve: ${require.resolve('my-package')}`);// throws MODULE_NOT_FOUNDconsole.log(`resolve: ${resolve('my-package')}`);
I imagine this must be a known limitation, since other features linked to module resolution in Node like package imports are not supported either. I'm reporting this here anyway because I could not find a reference to this in the documentation or in any of the other issues.
The text was updated successfully, but these errors were encountered:
This is a reminder that package self-referencing is not supported at this time.
package.json
index.js
DEMO LINK
I imagine this must be a known limitation, since other features linked to module resolution in Node like package imports are not supported either. I'm reporting this here anyway because I could not find a reference to this in the documentation or in any of the other issues.
The text was updated successfully, but these errors were encountered: