The userName
function is exported from model
and imported into web
in main.ts
Some things to make sure:
- moduleResolution in
tsconfig.json
of web is "bundler" - The
tsconfig.json
of themodel
package has settings that work in node and browser environments - The
exports
field is set in themodel
package - I couldn't get this to work with an
npm install
,yarn
,pnpm
orbun
should work