Closed mrsauravsahu closed 3 years ago
@mrsauravsahu Thanks for catching this! Aiming to fix it now.
I had a lot of problems before trying to find a way to bundle phin
. It's something to do with a disagreement between commonjs modules (which we have one loader for) and esm modules (which are rollup's default), possibly complicated by TypeScript and default exports.
It's further complicated by the rollup config, with its declaration of internal vs. external modules.
As I don't want this to hold up the alpha release (and I'm not confident I can fix it anyway), I've decided to just declare it as a peer dependency of @nodegui/svelte-nodegui
for now, and have satisfied that peer dependency in the svelte-nodegui-starter template, which builds and runs happily.
The commit of mention: https://github.com/nodegui/svelte-nodegui/commit/a62490ee391634bef6518ef0619ddd9fa4a01897
Issue
Cannot resolve
phin
packageWorkaround
Installing
phin
with annpm install phin
fixes this issue for now.