sounds like a canjs issue. That problem is caused by not defining a property, most likely your main ViewModel needs a page: "string" to be defined on it.

xedos

@xedoken

Yeap, already fixed. B/c new can3 need the page property in app.js :)

Paul Tichonczuk

@tracer99

So In my main app, I have node-modules loading from just the name (like in DoneJS). So I can import moment and it will find it in node-modules/momentHowever, in my unit tests, this doesn't work. Doesn't steal look into package.json in the root of the project like it does for the main app? Do I have to specify it somehow?

Kevin Phillips

@phillipskevin

how are you loading steal in your unit tests?

if you’re loading steal from node_modules, then it should read the package.json

The only thing I can think of, is that our projects sits within a larger project (not noad related).... so the root of the site is htdocs/static/ not / in the project directory structure (The webserver is configured to treat htdocts/static/ as the root of the site, I'm just refereing to the project directory structure).

Kevin Phillips

@phillipskevin

are you setting System.baseURL?

Paul Tichonczuk

@tracer99

No. but the base URL is / I'm just talking about the underlining directory structure. / in the browser points to htdocts/static in the project. package.json and node_modules are there as well.

Kevin Phillips

@phillipskevin

oh, ok

Paul Tichonczuk

@tracer99

I checked, the main projects package.json is being loaded

Kevin Phillips

@phillipskevin

when you run your tests you mean?

Paul Tichonczuk

@tracer99

yes

Kevin Phillips

@phillipskevin

Try to compare the System object between your main app and the test page

ok, is it possible to push a simplified version of your project somewhere I can take a look?

Paul Tichonczuk

@tracer99

hah. not easily. I'll try to reproduce it using a similar structure and see where I get.

Nico R.

@nriesco

has anyone had trouble with the generated css file after doing a donejs deploy?

I’m working on it but it seems that if I add a custom template something weird happens and the browser won’t render things correctly. That or the generated css file has errors

Anyway I sort of fixed it by including comments at the beggining and end of this custom css but like this: /*! my comment */

with css file I mean /dist/bundles/my-app/index.css

Nico R.

@nriesco

I just couldn’t replicate the error I had. I guess it had something to do with bootstrap, it was included in a plugin as well as the main app, I updated the plugin not to include bootstrap, probably that helped.

@tracer99 I probably won't have a chance to take a look at it until tomorrow. Too many meetings today.

what isn't loading correctly in your tests?

I'm not seeing moment

Jeroen Cornelissen

@jeroencornelissen

Is it possible to build steal so it runs inside it’s own ‘package’ ?Inside a specific div we start our CanJS app, wich uses can-jquery. But this conflicts with other (older) existing jquery widgets on our page.