-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Cannot compile contracts in v5.9.1 #6066
Comments
Could you provide more detailed reproduction information? Do you perhaps have a reproduction project we could check out? Thank you! (Some particular things I'm confused about -- when you say "execute the following command in Javascript", where? What is the |
To add on here, I'm facing a similar issue as well while deploying to linea testnet: *** Deployment Failed ***
while running the following command - truffle migrate --network linea |
Hi @haltman-at , I am currently importing the truffle library using I am running it in a similar context (with similar config) as this file. Btw, I also experience the same issue when running with the latest v5.9.3. |
@covendev, your issue would appear to be unrelated. I suggest opening a new issue if you want to discuss that. |
IssueWhen trying to compile contracts programmatically in v5.9.2, the 'Resolver is not a constructor' error is thrown. Terminal error
Environment
Repoyou can find my repo here |
Thanks for the repo @Reguzz! We'll look into this. |
So it looks like we updated the exports in the resolver package and neglected to update the import in the legacy workflow compile package, yikes! I put in #6078 to fix this. |
OK, we've released the fix in Truffle 5.10.0; I'm going to close this issue now, but let us know if there's still a problem! |
Thanks @haltman-at for the update! Created #6105 to follow up |
@RumeelHussainbnb That would appear to be an unrelated issue. I would suggest filing a new issue for that. |
Issue
When trying to compile contracts programmatically in v5.9.1, the 'Resolver is not a constructor' error is thrown.
Steps to Reproduce
With truffle v5.9.1 and default test config, run the following command in Javascript:
await truffle.contracts.compile(config);
Expected Behavior
Contract is compiled successfully.
Actual Results
The following error is thrown:
TypeError: Resolver is not a constructor at prepareConfig (/xxx/node_modules/truffle/build/webpack:/packages/workflow-compile/legacy/index.js:28:1) at Object.compile (/xxx/node_modules/truffle/build/webpack:/packages/workflow-compile/legacy/index.js:64:1) at plugin (/xxx/plugins/truffle.plugin.js:88:32) at processTicksAndRejections (node:internal/process/task_queues:96:5) at run (/xxx/debug.js:11:5)
Error seems to be coming from this line.
Environment
truffle version
): v5.9.1node --version
): v16.18.1npm --version
): 8.19.2The text was updated successfully, but these errors were encountered: