html-editor-enhanced icon indicating copy to clipboard operation
html-editor-enhanced copied to clipboard

No file or variants found for summernote.html [BUG]

Open mudasir-wiztech opened this issue 2 years ago • 9 comments

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 ?

mudasir-wiztech avatar Feb 09 '23 16:02 mudasir-wiztech

some bug with me

phudqph09495 avatar Feb 13 '23 01:02 phudqph09495

i've just fix it only upgrade package to 2.5.1

phudqph09495 avatar Feb 13 '23 01:02 phudqph09495

is there any way fix this bug on version 2.5.0 ?

i cant use 2.5.1 yet because some plugin dependency

MSyarifH avatar Feb 13 '23 07:02 MSyarifH

Solution

Moving the folder assets to the outside folder lib

Screenshot 2023-02-22 at 15 54 45

Then update the path in pubspec.yaml

Screenshot 2023-02-22 at 15 53 20

Tested on flutter version 3.7.4

dab246 avatar Feb 22 '23 08:02 dab246

Fork repository and make changes in pubspec.yaml file given below then ask for merge or upload new one on pub.dev

TejasPawar9975 avatar Apr 26 '23 11:04 TejasPawar9975

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!

adithyank avatar May 29 '23 02:05 adithyank

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

aman246149 avatar Jun 28 '23 16:06 aman246149

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??

federicapo avatar Jan 12 '24 13:01 federicapo

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 to file_picker: ^5.5.0. (I gave this one a shot and it worked for me)

hmzaak avatar Mar 04 '24 10:03 hmzaak