Comments (3)
Hi @nimashahahmadian
I can't reproduce the issue on my end. The built web can run normally without error above. Could you share your sample code so I can try it? And which browser are you using?
from flutter.
My sample code is flutter's original start project.
the way to reproduce it is using build with the following commands:
flutter build web --no-web-resources-cdn --web-renderer canvaskit
I tried serving the build with local npm serve method and with apache on a remote server.
when serving local with npm serve. some errors happen which I can not understand what it is but the app works through to my login page.
on remote server app won't even start.
and crash with mentioned logs and errors.
what is the best practice to serve flutter web app using canvaskit build and not using any cdn?
from flutter.
I hosted the build in local with Python, it works as expected:
when serving local with npm serve. some errors happen which I can not understand what it is but the app works through to my login page.
It seems you are testing your production project. Please retry on a new Flutter project.
Could you try switching to Network tab on your browser and check the request URLs as in my screenshot?
from flutter.
Related Issues (20)
- linux-58 is dead. HOT 1
- mac-2, mac-7 & mac-25 lost external connection phone devices. HOT 1
- Improve Flutter's Android device orientation performance
- [camera_android_camerax] Ensure `startVideoCapturing` and `stopVideoRecording` return video with expected duration
- [Impeller] AHB swapchain has synchronization issue on present.
- [two_dimensional_scrollables] childPositionGetter in Tableview.builder
- White line below TabBar HOT 1
- Flutter should use a separate package for clang-format
- Close the search by pressing escape
- Autofill update/save password prompt inconsistent behaviour for IOS when multiple textfields on screen
- mac-8 lost external connection phone device.
- [tool_crash] ProcessException: Found candidates, but lacked sufficient permissions to execute "/storage/emulated/0/flutter/app/android/gradlew". Command: /storage/emulated/0/flutter/app/android/gradlew, OS error code: 0
- Error(Warning) in hiding slider labels HOT 1
- Incorrect Command in Documentation for Installing Flutter SDK on macOS
- Add alignment property to SnackBar HOT 1
- The rendering layer relies on the PaintingBinding but RendererBinding doesn't require it
- IconButton Semantics Label HOT 1
- %5Btool_crash%5D RPCError HOT 1
- [go_router] the page opened incorrectly HOT 4
- ValueNotifier should have an addValueListener method.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter.