html-editor-enhanced
html-editor-enhanced copied to clipboard
No file or variants found for summernote.html [BUG]
Hello,
I'm getting follow error while running build: No file or variants found for asset: packages/html_editor_enhanced/summernote.html.
when ever it is working file on old flutter versions.
can anyone please help me ?
some bug with me
i've just fix it only upgrade package to 2.5.1
is there any way fix this bug on version 2.5.0 ?
i cant use 2.5.1 yet because some plugin dependency
Solution
Moving the folder assets
to the outside folder lib

Then update the path in pubspec.yaml

Tested on flutter version 3.7.4
Fork repository and make changes in pubspec.yaml file given below then ask for merge or upload new one on pub.dev
Fork repository and make changes in pubspec.yaml file given below then ask for merge or upload new one on pub.dev
Thanks. This has solved the issue!
Launching lib\main.dart on SM G781B in debug mode... Error detected in pubspec.yaml: No file or variants found for asset: packages/html_editor_enhanced/summernote.html.
This asset was included from package html_editor_enhanced. Target debug_android_application failed: Exception: Failed to bundle asset files.
FAILURE: Build failed with an exception.
-
Where: Script 'C:\src\flutter_windows_3.0.3-stable\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1151
-
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\src\flutter_windows_3.0.3-stable\flutter\bin\flutter.bat'' finished with non-zero exit value 1
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
- Get more help at https://help.gradle.org BUILD FAILED in 36s Exception: Gradle task assembleDebug failed with exit code 1 Exited (sigterm)
Not able to solve error
Hello, I use flutter 3.3.10 and html_editor_enhanced 2.5.1 and i have this error in ios: Error Domain=packages/html_editor_enhanced/assets/summernote-no-plugins.html asset file cannot be found! Code=0 "(null)" #0 only the first time that i open my app. If i kill the app its work. leade can you help me??
Flutter Version: 3.19.0
I encountered this error while using html_editor_enhanced: ^1.8.0
Attempting to upgrade to html_editor_enhanced: ^2.5.1
resulted in compatibility issues with file_picker: ^6.1.1
, which I was using at the time. Flutter suggested two potential solutions:
- Reverting back to
html_editor_enhanced: ^1.8.0
. (I wasn't going to do this as I would encounter this error again) - Downgrade
file_picker
tofile_picker: ^5.5.0
. (I gave this one a shot and it worked for me)