pedronauck/react-adopt

Problem with local build

bouzlibop opened this issue · 0 comments

I tried to build the package locally.

yarn install && yarn test both passes, but yarn build:prod fails:

16:19 $ yarn build:prod
yarn run v1.12.3
$ yarn run fix
$ run-s fix:*
$ prettier "src/**/*.{ts,tsx}" --write
src/index.test.tsx 301ms
src/index.tsx 58ms
$ tslint -p ./
$ yarn build --compress
$ libundler build --ts --sourcemap --compress
♻️  Cleaning old files...
🚀  Start compiling...
⠹ Compiling src/index.tsx...
Error: src/index.tsx:3:38 - error TS2497: Module ''hoist-non-react-statics'' resolves to a non-module entity and cannot be imported using this construct.

3 import * as hoistNonReactStatic from 'hoist-non-react-statics'
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~


error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.