There was a similar question (65989811) but more than a year and no satisty answer was given.I have a 'pixi-flex-layout' library locally and I use npm link to use in my projetct. When I start it never works. I put in snowpack config:
packageOptions: {
/* ... */
/*knownEntrypoints: ['pixi-flex-layout/lib/index.js'],
packageLookupFields: ['pixi-flex-layout'],
external: ['pixi-flex-layout']
*/
external: ['pixi-flex-layout'],
packageExportLookupFields:['pixi-flex-layout']
}, when i put that, they starts normaly without any erros(I believe only the 'external' was needed, but, when i go to the page it can't resolve the package:
Uncaught TypeError: Failed to resolve module specifier
"pixi-flex-layout". Relative references must start with
either "/", "./", or "../".
Someone knows how to deal with this? I start to think to change for another application like parcel(even very slow in comparition if it works with local libraries). I can't use from the github, because this library won't work, so I donwload and updtate to work with pixi.js 6.5.5 and rebuild locally. I help will be appreciated.