jdanyow / aurelia-breeze-northwind

A Northwind demo using Aurelia and Breeze
http://jdanyow.github.io/aurelia-breeze-northwind/
MIT License
92 stars 35 forks source link

Uncaught Error loading "github:dogfalo/materialize@0.96.1 #2

Closed StefanScholte closed 9 years ago

StefanScholte commented 9 years ago

Hi there I followed the steps for running the app locally.

when I do a jspm install I get the following warning: warn Main entry point not found for github:dogfalo/materialize@0.96.1. Adjust this property in the package.json or with an override, setting "main": false if this is the intention.

and when doing a gulp watch the console shows the following error:

Uncaught Error loading "github:dogfalo/materialize@0.96.1" at http://localhost:9000/jspm_packages/github/dogfalo/materialize@0.96.1.js Error loading "github:dogfalo/materialize@0.96.1" from "main" at http://localhost:9000/dist/main.js Not Found: http://localhost:9000/jspm_packages/github/dogfalo/materialize@0.96.1.js

jdanyow commented 9 years ago

Hi @StefanScholte - I wasn't able to reproduce this- here's what I did to test it out:

git clone https://github.com/jdanyow/aurelia-breeze-northwind
cd aurelia-breeze-northwind
npm install
jspm install
gulp watch

browse to localhost:9000... site loaded without issue.

StefanScholte commented 9 years ago

Hi @jdanyow,

I Just did exactly what you did to test it out and I'm still getting this error about Materialize.

what does "Main entry point not found for github:dogfalo/materialize@0.96.1. Adjust this property in the package.json or with an override, setting "main": false if this is the intention." mean? this is a warning I get when executing jspm install

and when I browse to localhost:9000 after gulp watch the console gives the following error:

"uncaught exception: Error loading "github:dogfalo/materialize@0.96.1" at http://localhost:9000/jspm_packages/github/dogfalo/materialize@0.96.1.js Error loading "github:dogfalo/materialize@0.96.1" from "main" at http://localhost:9000/dist/main.js Not Found: http://localhost:9000/jspm_packages/github/dogfalo/materialize@0.96.1.js throw e;"

KingRial commented 9 years ago

Same errors here.

Still trying to figure why the materialize library won't be compiled.

jdanyow commented 9 years ago

Apologies for the issues- I'm looking into this right now.

jdanyow commented 9 years ago

Still can't reproduce, I'm on Windows- I'm going to try on a Mac. Couple things to try:

Have you updated jspm lately? npm install jspm -g

Try uninstalling and re-installing materialize:

jspm uninstall materialize
jspm install materialize
StefanScholte commented 9 years ago

I did the above but I keep getting the error

Just for clarity, The initial screen is visible with NorthWind and Breeze text and the spinner and then the error that is not finding this JS file: http://localhost:9000/jspm_packages/github/dogfalo/materialize@0.96.1.js

jdanyow commented 9 years ago

can you share a screenshot of the console output?

StefanScholte commented 9 years ago

snapshot1_installing materialize snapshot2_webpage_started_localhost

fopsdev commented 9 years ago

same here, i'm on ubuntu screenshot - 310515 - 12 16 46

jdanyow commented 9 years ago

Another thing to try:

https://github.com/aurelia/skeleton-navigation/issues/65#issuecomment-101042305

jspm cc
jspm install
fopsdev commented 9 years ago

did not work for me. same error. did a reinstall of jspm using npm install then deleted jspm_modules folder then ran the above commands

StefanScholte commented 9 years ago

Nope did not work for me too.

KingRial commented 9 years ago

Here how I solved the problem on my machine:

jspm cc
Removing directory "jspm_packages" from the root directory
jspm install

For some reasons, if jspm fails some operation, it won't compile correctly all the environment and it will think that everything is correct.

Removing the directory after the cache clear operation, should solve the problem

P.S. on windows: remember to use a command shell with the rights to access your user directory. To be sure, start a command shell with administration privileges.

aguspiza commented 9 years ago

after:

jspm uninstall materialize jspm install materialize

it worked but i got 2 folders inside jspm_packages/github with different casing: Dogfalo and dogfalo

it seems that it is Dogfalo at github. Linux is case sensitive so that is why it does work on Windows.

jdanyow commented 9 years ago

thanks @aguspiza !

StefanScholte commented 9 years ago

Thanks you guys it works very good now