-
Notifications
You must be signed in to change notification settings - Fork 61
[local development bug] yarn build generates /lib/index.js instead of /lib/src/index.js #796
Comments
It is unclear to me if this is a blocker, or if this issue is easy to circumvent |
/start |
Tips:
|
yeah it is a blocker, it is both |
@pavlovcik on a clean build, touching nothing $ probot run ./lib/src/index.js
/home/ubiquibot/node_modules/resolve/lib/sync.js:111
var err = new Error("Cannot find module '" + x + "' from '" + parent + "'");
^
Error: Cannot find module './lib/src/index.js' from '/home/ubiquibot'
at resolveSync (/home/ubiquibot/node_modules/resolve/lib/sync.js:111:15)
at resolveAppFunction (/home/ubiquibot/node_modules/probot/lib/helpers/resolve-app-function.js:34:23)
at combinedApps (/home/ubiquibot/node_modules/probot/lib/run.js:101:79)
at async Server.load (/home/ubiquibot/node_modules/probot/lib/server/server.js:60:9)
at async run (/home/ubiquibot/node_modules/probot/lib/run.js:105:9) {
code: 'MODULE_NOT_FOUND'
} PRing... |
It is a blocker for development, this was an issue a month ago, you can see the discussion here #558 (comment) Cause of the problem: #558 (comment) So it was changed from @wannacfuture @whilefoo here's explanation on how it started |
you may see the clean/clear output from the npm above |
|
thanks for the input @devpanther |
it wasn't magic lol, you can read through the comment I attached and the StackOverflow on one of the comment |
i know, just for the fun :] |
impressive the stuff at #583 Comment that it's how bug emerges |
yarn run v1.22.19
$ probot run ./lib/index.js
_| _| _|_|_| _|_|_| _|_| _| _| _|_|_| _|_|_|_|_| _| _|
_| _| _| _| _| _| _| _| _| _| _| _| _|
_| _| _|_|_| _| _| _|_| _| _| _| _| _|
_| _| _| _| _| _| _| _| _| _| _| _|
_|_| _|_|_| _|_|_| _|_| _| _|_| _|_|_| _| _|
INFO (server): Running Probot v12.3.1 (Node.js: v18.16.1)
INFO (server): Forwarding https://smee.io/q5fmDornulyf5ge to http://localhost:3000/
INFO (server): Listening on http://localhost:3000
INFO (server): Connected |
I'm not getting these issues with a fresh yarn install |
You can't, you have to delete the lib folder first |
this is reproducible, you can see how probot looks for
|
refer to #558 (comment) for the bug context |
all feedback it's great, altho everything points out |
Conversation Rewardsdevpanther: [ CLAIM 21.15 WXDAI ]Keyrxng: [ CLAIM 1.5 WXDAI ]seprintour: [ CLAIM 1.5 WXDAI ] |
! Error: Permit generation skipped, penalty removed |
@pavlovcik it seems the permit was generated and even saved to the DB, from that moment on it should post all comments but it only posted conversation reward comment. My suspicion is on Netlify's 10 second timeout. |
10 sec? |
@0xcodercrane Also suspects a timeout issue. I think it makes sense because of the logs showing that it will generate a payment permit as well as the inconsistency of it sometimes posting. Logical errors would be consistent |
You think #794 would fix this?, it joins all the permits together in 1 |
both? assignee and creator permits? |
Depends on why its timing out. The only way I could see this being the solution is if each comment waits for the previous network response in series. Then it could be, for example, 100ms for each network request, but in series thats like 400ms of lag. @0xcodercrane claims that its due to the |
but what the logs says? it doesn't make sense time out either, there is comments rewards there to be honest |
/query @molecula451 |
Error retrieving access for @molecula451 |
/query @molecula451 |
Error retrieving access for @molecula451 |
/allow set-time @molecula451 true |
Updated access for @molecula451 successfully! Access: time for "ubiquity/ubiquibot" |
/query @molecula451 |
@molecula451's wallet address is 0x4D0704f400D57Ba93eEa88765C3FcDBD826dCFc4, multiplier is 1 and access levels are
|
😉 |
The fix isn't merged to production, yet. |
you should know? |
@molecula451 please be sure to review this conversation and implement any necessary fixes. Unless this is closed as completed, its payment of 21.15 WXDAI will be deducted from your next bounty. |
Task Creator Rewardmolecula451: [ CLAIM 17.1 WXDAI ] |
the only permit for this amount was devpanther: [ CLAIM 21.15 WXDAI ] |
/query @molecula451 |
@molecula451's wallet address is 0x4D0704f400D57Ba93eEa88765C3FcDBD826dCFc4 and multiplier is 1 |
just did a clean install and I get another error upon yarn start: Cannot find module './lib/src/index.js'. it seems Typescript is generating ./lib/index.js instead of ./lib/src/index.js. Not sure why it changed
Originally from telegram: by @whilefoo https://t.me/UbiquityDAO/31132/31145
The text was updated successfully, but these errors were encountered: