FilledStacks / responsive_builder

A set of widgets to make responsive UI building in flutter more readable
MIT License
504 stars 81 forks source link

Unable to find modules for some sources, how to fix it? #10

Closed Mecil9 closed 4 years ago

Mecil9 commented 4 years ago

pubspec.yaml: dependencis: ....... responsive_builder: ^0.1.5

console print error: Unable to find modules for some sources, this is usually the result of either a bad import, a missing dependency in a package (or possibly a dev_dependency needs to move to a real dependency), or a build failure (if importing a generated file).

Please check the following imports:

import 'package:responsive_builder/responsive_builder.dart'; from web_router_demo|lib/widgets/navigation_bar/navigation_bar.dart at 2:1

Failed after 88ms

in file import :

import 'package:flutter/material.dart'; import 'package:responsive_builder/responsive_builder.dart'; import 'package:web_router_demo/widgets/navigation_bar/navigation_bar_mobile.dart'; import 'package:web_router_demo/widgets/navigation_bar/navigation_bar_tablet_desktop.dart';

class NavigationBar extends StatelessWidget { @override Widget build(BuildContext context) { return ScreenTypeLayout( mobile: NavigationBarMobile(), tablet: NavigationBarTableDesktop(), ); } }

?????

Mecil9 commented 4 years ago

fix it, must be restart vscode.......

syedqbuster commented 4 years ago

getting same issue how did u fix that ?

FilledStacks commented 4 years ago

@syedqbuster he restarted vs code. What modules are you having a problem with?

syedqbuster commented 4 years ago

I tried restart my android studio but getting same issue,,

syedqbuster commented 4 years ago

@FilledStacks This is my pubsec.yml look like

version: 1.0.0+1

environment: sdk: ">=2.6.0 <3.0.0"

dependencies: flutter: sdk: flutter http: ^0.12.0+1 responsive_builder: ^0.1.5

Facing this issue

Unable to find modules for some sources, this is usually the result of either a bad import, a missing dependency in a package (or possibly a dev_dependency needs to move to a real dependency), or a build failure (if importing a generated file).

Please check the following imports:

import 'package:responsive_builder/responsive_builder.dart'; from demoapp|lib/main.dart at 4:1

Failed after 90ms

FilledStacks commented 4 years ago

Update the package to the latest 0.1.9,

syedqbuster commented 4 years ago

@FilledStacks earlier i used latest version, and got the same issue then i downgrade and tried of all version still getting this issue. and also I did the same step. Is it supported for web project ??