dart-lang / sample-pop_pop_win

"Pop, Pop, Win!" is an implementation of Minesweeper in Dart.
https://dart-lang.github.io/sample-pop_pop_win/
BSD 3-Clause "New" or "Revised" License
149 stars 58 forks source link

Failed to load resource: the server responded with a status of 404 (Not Found) #50

Closed timotheecour closed 6 years ago

timotheecour commented 6 years ago

am i missing something?

git clone https://github.com/dart-lang/sample-pop_pop_win

open in webstorm

run index.html

open developper mode in Chromium: shows:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:xxxxx/sample-pop_pop_win/web/packages/pop_pop_win/assets/style.css 
kevmoo commented 6 years ago

Make sure you run 'pub get'

In webstorm, open a dart file in web/ or lib/

You should see a notification about 'enable Dart support'. Do that.

Then run 'pub get'

Let me know if that works!

On Mon, Sep 18, 2017 at 5:34 PM, Timothee Cour notifications@github.com wrote:

am i missing something?

git clone https://github.com/dart-lang/sample-pop_pop_win

open in webstorm

run index.html

open developper mode in Chromium: shows: Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:xxxxx/sample-pop_pop_win/web/packages/pop_pop_win/assets/style.css

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dart-lang/sample-pop_pop_win/issues/50, or mute the thread https://github.com/notifications/unsubscribe-auth/AABCiv-VPa8dFxjKDfwoyUPDDY7gmH-Pks5sjwv9gaJpZM4Pbs_Y .

timotheecour commented 6 years ago

that worked thanks! one more thing:

kevmoo commented 6 years ago

pub serve is easier

Could you copy-paste the context of the error? Is this from pub build or within the browser?

Which browser are you using? Which version of the SDK?

On Mon, Sep 18, 2017 at 6:12 PM, Timothee Cour notifications@github.com wrote:

that worked thanks! one more thing:

-

despite it working i am getting error: A value of type 'DisplayObjectParent' can't be assigned to a variable of type 'BoardElement'. (invalid_assignment at [pop_pop_win] lib/src/stage/square_element.dart:105)

is this the right way to run command line (without IDE)?

pub build cd build python -m SimpleHTTPServer 8000 browse http://localhost:8000/

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dart-lang/sample-pop_pop_win/issues/50#issuecomment-330399078, or mute the thread https://github.com/notifications/unsubscribe-auth/AABCigKpv1AI8NDUJbd7GfsWvQa0KKnkks5sjxT0gaJpZM4Pbs_Y .

timotheecour commented 6 years ago

that error was from webstorm IDE.

thanks for pub serve command (works from chromium)

dart SDK 1.24.2 (via homebrew)

kevmoo commented 6 years ago

A good place for general Q&A is https://gitter.im/dart-lang/TALK-general

Or ask questions here: https://stackoverflow.com/tags/dart/

Glad you got it working!