webpackbin icon indicating copy to clipboard operation
webpackbin copied to clipboard

Getting errors when trying to run the project

Open alexilyaev opened this issue 7 years ago • 1 comments

Hi,

I'm trying to work on a PR, but I'm getting some errors on initial setup (based on the Readme).

Did a fresh install on a Mac OS X 10.12.4. Node v6.9.1 NPM 3.10.8

First I got:

signOutClicked.js:15 Uncaught TypeError: (0 , _cerebralRouter.redirect) is not a function
    at Object.defineProperty.value (signOutClicked.js:15)
    at __webpack_require__ (bootstrap ccac89c…:49)
    at Object.defineProperty.value (index.js:14)
    at __webpack_require__ (bootstrap ccac89c…:49)
    at Object.defineProperty.value (main.js:11)
    at __webpack_require__ (bootstrap ccac89c…:49)
    at Object.<anonymous> (main.js:31154)
    at __webpack_require__ (bootstrap ccac89c…:49)
    at bootstrap ccac89c…:146
    at bootstrap ccac89c…:146

So I commented out the line: src/modules/app/signals/signOutClicked.js:15 and got:

newBinClicked.js:6 Uncaught TypeError: (0 , _cerebralRouter.goTo) is not a function
    at Object.defineProperty.value (newBinClicked.js:6)
    at __webpack_require__ (bootstrap df657d2…:49)
    at Object.defineProperty.value (index.js:16)
    at __webpack_require__ (bootstrap df657d2…:49)
    at Object.defineProperty.value (main.js:11)
    at __webpack_require__ (bootstrap df657d2…:49)
    at Object.<anonymous> (main.js:31156)
    at __webpack_require__ (bootstrap df657d2…:49)
    at bootstrap df657d2…:146
    at bootstrap df657d2…:146

So I commented out that line as well: src/modules/app/signals/newBinClicked.js:6 and then got:

utils.js:97 Uncaught Error: Cerebral - You are not passing controller to Container
    at throwError (utils.js:97)
    at Container.getChildContext (Container.js:33)
    at Object.createClassComponentInstance (utils.js:44)
    at mountComponent (mounting.js:149)
    at Object.mount (mounting.js:17)
    at Object.render (rendering.js:89)
    at Object.defineProperty.value (main.js:65)
    at __webpack_require__ (bootstrap 41a6227…:49)
    at Object.<anonymous> (main.js:31156)
    at __webpack_require__ (bootstrap 41a6227…:49)

I suppose it has something to do with some Cerebral packages versions or something.
Especially this line in package.json raised an eyebrow:

"cerebral-router": "next",

And the link to cerebral-router on cerebral-module-router is broken: https://github.com/cerebral/cerebral/tree/master/packages/cerebral-router

It says For Cerebral 2 use cerebral-router instead. but it points to a 404.

Ref: https://github.com/cerebral-legacy/cerebral-module-router

So... I'm stuck.

Side Note: The sane stack trace is possible because of PR #29

alexilyaev avatar May 14 '17 22:05 alexilyaev

@alexilyaev After renaming the packages in a recent PR the url to router is now https://github.com/cerebral/cerebral/tree/master/packages/router.

henri-hulski avatar May 14 '17 22:05 henri-hulski