Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

error TS2305: Module ''bn.js'' has no exported member 'BigNumber' #1596

@leoplct

Description

@leoplct

I am following this tutorial: https://0xproject.com/wiki#Create,-Validate,-Fill-Order

When I run

yarn run order_actions

I get this error

yarn run v1.6.0
$ run-s build tutorial:order_actions
$ tsc
node_modules/web3/types.d.ts(1,10): error TS2305: Module ''bn.js'' has no exported member 'BigNumber'.
node_modules/web3/types.d.ts(1,27): error TS2497: Module ''bn.js'' resolves to a non-module entity and cannot be imported using this construct.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "build" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

package.json

{
    "name": "0xStarterProject",
    "version": "0.1.0",
    "description": "",
    "scripts": {
        "order_actions": "run-s build tutorial:order_actions"
....
"dependencies": {
        "0x.js": "0.36.3",
        "@0xproject/connect": "^0.6.10",
        "@0xproject/tslint-config": "^0.4.16",
        "@0xproject/utils": "^0.5.2",
        "@types/underscore": "^1.8.8",
        "body-parser": "^1.18.2",
        "express": "^4.16.2",
        "web3": "^1.0.0-beta.34",
        "websocket": "^1.0.25"
    }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions