marko-js-archive / marko-widgets

[LEGACY] Module to support binding of behavior to rendered UI components rendered on the server or client
http://v3.markojs.com/docs/marko-widgets/
MIT License
142 stars 40 forks source link

Cannot find module from "/$/marko-widgets/lib" #136

Closed rtalwar26 closed 8 years ago

rtalwar26 commented 8 years ago

Hi , Iam facing this issue when I try to bind index.js file via w-bind when using marko-widgets

The error is

Uncaught Error: Cannot find module "/demo$1.0.0/backend/v2/components/pmr-main-view/index" from "/$/marko-widgets/lib"

I think something is wrong with the directory structure because it is prefixing the node project's name demo before requiring any module. I am running the app from the projects directory

node backend/app.js

I have uploaded the demo project here.

patrick-steele-idem commented 8 years ago

Hey @rtalwar26, I'm not seeing the error ("/demo$1.0.0/backend/v2/components/pmr-main-view/index" is being loaded just fine for me). Are you still seeing the issue?

rtalwar26 commented 8 years ago

Guess this was occurring through some outdated dependency in node_modules, i cleared them and updated to latest and the error is gone. Also marko, marko-widgets and lasso were latest when the build broke.

patrick-steele-idem commented 8 years ago

Not sure what happened. Since I'm not able to reproduce I am going to go ahead and close this issue. Please let me know if you see the problem again. Thanks.