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

2.4.0 conflicts with dart build runner #50

Open
hamberluo opened this issue Jun 27, 2022 · 10 comments
Open

2.4.0 conflicts with dart build runner #50

hamberluo opened this issue Jun 27, 2022 · 10 comments

Comments

@hamberluo
Copy link

[WARNING] .dart_tool/build/entrypoint/build.dart:15:8: Error: Error when reading '../../../../.pub-cache/hosted/pub.dartlang.org/web3dart-2.4.0/lib/src/builder/builders.dart': No such file or directory
import 'package:web3dart/src/builder/builders.dart' as _i8;
       ^
.dart_tool/build/entrypoint/build.dart:43:45: Error: Undefined name 'abiGenerator'.
  _i1.apply(r'web3dart:abi_generator', [_i8.abiGenerator],
                                            ^^^^^^^^^^^^
.dart_tool/build/entrypoint/build.dart:48:59: Error: Undefined name 'deleteSource'.
  _i1.applyPostProcess(r'web3dart:delete_abi_source', _i8.deleteSource,
                                                          ^^^^^^^^^^^^
[INFO] Precompiling build script... completed, took 3.2s

[SEVERE] Failed to precompile build script .dart_tool/build/entrypoint/build.dart.
This is likely caused by a misconfigured builder definition.
@hnvn
Copy link

hnvn commented Aug 3, 2022

Any solution?

@Herryjoeson
Copy link

use 2.3.5

@makinghappen
Copy link

@xclud why did you remove builders in this commit? simolus3@9279ef7

@xclud
Copy link
Owner

xclud commented Sep 14, 2022

Builders depend on a lot of things that are needed only during build time. There's no reason to be bundled in the output project. That even makes more sense since the size of bundles matters and flutter for web is already slow enough.

The builders should be refactored out as a separate project and be listed under dev-dependencies.

@migalv
Copy link

migalv commented Sep 16, 2022

So in the mean time we use v3.5.0? Or is there any solution?

@hamberluo
Copy link
Author

hamberluo commented Sep 20, 2022

Builders depend on a lot of things that are needed only during build time. There's no reason to be bundled in the output project. That even makes more sense since the size of bundles matters and flutter for web is already slow enough.

The builders should be refactored out as a separate project and be listed under dev-dependencies.

we've already included builder_runner in dev-dependencies.
but when running build_runner, we got this error.

@drshaggy
Copy link

I still get this error even when using version 2.3.5, any ideas?

@drshaggy
Copy link

drshaggy commented Oct 1, 2022

Solution for me was including build_web_compilers

@inveker
Copy link

inveker commented Oct 2, 2022

@xclud
Hi, Thank you for supporting this package!
I took your message as a challenge and have created a web3dart_builders package which includes builders code from version 2.3.5.

It can be connected to web3dart 2.4.1v if you remove the build.yaml file from it

PS
This is my first package on pub.dev, if you know how to improve it please email me [email protected]

@emrbli
Copy link

emrbli commented Oct 10, 2022

@xclud Hi, Thank you for supporting this package! I took your message as a challenge and have created a web3dart_builders package which includes builders code from version 2.3.5.

It can be connected to web3dart 2.4.1v if you remove the build.yaml file from it

PS This is my first package on pub.dev, if you know how to improve it please email me [email protected]

thank you @inveker , it's fixed

kayumarie added a commit to kayumarie/ens_lookup that referenced this issue Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants