Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] terrain console: MODULE_NOT_FOUND #94

Closed
taitruong opened this issue Jun 22, 2022 · 6 comments
Closed

[BUG] terrain console: MODULE_NOT_FOUND #94

taitruong opened this issue Jun 22, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@taitruong
Copy link

taitruong commented Jun 22, 2022

Issue description

terrain console can not be started due to

Steps to reproduce the issue

Following steps as described in https://docs.terra.money/docs/develop/terrain/using-terrain-localterra.html

Start localterra:

  1. git clone --depth 1 https://github.com/terra-money/localterra
  2. cd localterra
  3. docker-compose up

Create new dapp

  1. terrain new counter (instead of my-terra-dapp, see bug [BUG] terrain new my-terra-dapp: contract counter missing #93)
  2. cd counter
  3. npm install
  4. terrain deploy counter --signer test1
  5. terrain console

Then I get this error:
`$ terrain console

Error: Cannot find module '/home/ttruong/data/development/counter/lib'
Require stack:
- /home/ttruong/.nvm/versions/node/v16.13.2/lib/node_modules/@terra-money/terrain/lib/commands/console.js
- /home/ttruong/.nvm/versions/node/v16.13.2/lib/node_modules/@terra-money/terrain/node_modules/@oclif/config/lib/p
lugin.js
- /home/ttruong/.nvm/versions/node/v16.13.2/lib/node_modules/@terra-money/terrain/node_modules/@oclif/config/lib/c
onfig.js
- /home/ttruong/.nvm/versions/node/v16.13.2/lib/node_modules/@terra-money/terrain/node_modules/@oclif/config/lib/i
ndex.js
- /home/ttruong/.nvm/versions/node/v16.13.2/lib/node_modules/@terra-money/terrain/node_modules/@oclif/command/lib/
command.js
- /home/ttruong/.nvm/versions/node/v16.13.2/lib/node_modules/@terra-money/terrain/node_modules/@oclif/command/lib/
index.js
- /home/ttruong/.nvm/versions/node/v16.13.2/lib/node_modules/@terra-money/terrain/bin/run
Code: MODULE_NOT_FOUND

`

Tools and operating system versions

$ npm -v && node -v && docker-compose -v && docker -v && terrain --version
8.1.2
v16.13.2
docker-compose version 1.28.5, build c4eb3a1f
Docker version 20.10.17, build 100c701
@terra-money/terrain/0.4.1 linux-x64 node-v16.13.2

@taitruong taitruong added the bug Something isn't working label Jun 22, 2022
@dawiddrzala
Copy link

this is on tag 0.4.1 or the main branch ? console was not working on 0.4.1 with external lib

@emidev98
Copy link
Contributor

emidev98 commented Jun 23, 2022

Hey, thanks for the report, we fixed some of these issues:

We are still doing more testing to be 100% sure that the new release has no problems. Regarding the issue with the docs, we'll try to fix it as soon as possible, thanks both for the reports!

@taitruong
Copy link
Author

taitruong commented Jun 23, 2022

Hey, thanks for the report, we fixed some of these issues:

We are still doing more testing to be 100% sure that the new release has no problems. Regarding the issue with the docs, we'll try to fix it as soon as possible, thanks both for the reports!

Ok, thx. When will be new terrain version available? Current version 0.4.1 - https://www.npmjs.com/package/@terra-money/terrain

I could also manually rebuild it. Just tell me how and which branch I should use :).

@emidev98
Copy link
Contributor

I do not know yet since the next version will contain Rust workspaces which is a compplex feature to implement but is being developed here #86.

You can use main branch in your local environment and you'll be in the bleeding edge ;)

@taitruong
Copy link
Author

I do not know yet since the next version will contain Rust workspaces which is a compplex feature to implement but is being developed here #86.

You can use main branch in your local environment and you'll be in the bleeding edge ;)

And how do I build a new terrain using main branch? Looking at the scripts in package.json I have no idea resp. can't find a build script :).

@taitruong
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants