Sanshain / preact-boilerplate

preact boilerplate
0 stars 0 forks source link

var __nollup__external___modules__reatom_npm_react__useAtom__ = self._modules__reatom_npmReact.useAtom; (Cannot read properties of undefined (reading 'useAtom')) #12

Closed Sanshain closed 1 month ago

Sanshain commented 1 month ago

Trouble:

You can see any errors likes this:

Cannot read properties of undefined (reading '{some importing entity}')

And when you move to source code, you will see the following line:

var __nollup__external___modules__{some_package}__{some_importing_entity}__ = self._modules__{some package}.{some importing entity};

It means nollup hasn't found the package or export, but withhold it

Solve

Depends on a case