megahertz / howfat

Shows how fat is a package
MIT License
84 stars 8 forks source link

Error: Cannot read properties of undefined (reading 'toString') #25

Closed javaxiu closed 1 year ago

javaxiu commented 1 year ago

this is my package.json

{
    "scripts": {
        "build": "webpack build"
    },
    "devDependencies": {
        "webpack": "^5.89.0",
        "webpack-cli": "^5.1.4"
    },
    "dependencies": {
        "@types/react": "^18.2.33",
        "@types/react-dom": "^18.2.14",
        "antd": "^5.10.2",
        "react": "^18.2.0",
        "react-dom": "^18.2.0"
    }
}

and i got such error

➜  barrel-file-test npx howfat --fields=module
Error: Cannot read properties of undefined (reading 'toString')
➜  barrel-file-test npx howfat -r --fields=module
Error: Cannot read properties of undefined (reading 'toString')
➜  barrel-file-test 

it works fine with this command npx howfat antd

megahertz commented 1 year ago

Thanks, fixed in v0.3.8