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.
Activity
ljharb commentedon Aug 14, 2022
Yes, the reminder isn’t necessary - we don’t yet support “exports” or any of the features that landed with it, including self-referencing.
alejooroncoy commentedon Oct 12, 2022