TypeError: customConfig.configure is not a function #2
Comments
I am experiencing the same issue as you. I am using the enhance feature and thought this was the reason. Evidently not. The fix I found was to add in a simple check to see if the configure method exists. When I put a breakpoint in, I can see it is trying to call configure on an empty object |
Try this PR: #4 - it fixes the issue for me. |
@Zensavona After speaking with @EisenbergEffect this appears to be a misunderstanding of the difference between Webpack and the standard Skeleton. If you use Webpack, you don't need an |
@EisenbergEffect This can be closed. |
It looks like the WebPack skeletons at https://github.com/aurelia/skeleton-navigation/blob/master/skeleton-typescript-webpack/index.html have |
@veikkoeeva Yeah, the new skeletons don't need you to use the bootstrapper manually, it works with the |
I have no idea what I'm doing (first attempt using aurelia), but I'm getting this same error message. I'm trying to use https://github.com/code-chris/aurelia-knockout with a new aurelia-cli project. The instructions with aurelia-knockout are not clear to me, but this is what I'm trying: I I can log this as an issue with aurelia-knockout, but I ended up here first from googling the error message. |
I would definitely ask a question on the |
I don't understand why this issue is closed?
|
@niieani Can you comment on this? Is this a breaking change in Weback's code again? |
Oops, I'm in the wrong repo. My issue was with the navigation skeleton release at https://github.com/aurelia/skeleton-navigation/releases/tag/1.1.1 . I think this is the one. Excuse me. |
@EisenbergEffect yeah, it's breaking change in Webpack, basically we need to lock the webpack-dev-server too (we only locked 'webpack' before). We discussed it with @Vheissu already. |
Is that in a PR? |
I'll adjust the PR to use locked webpack versions so we don't get these sort of problems in the future. But I'm working on a fix for old skeletons now. |
Cool. Thanks! |
Fixes pushed to master aurelia/skeleton-navigation@cb30c75. |
Hi guys,
I've come across an issue while using this bootstrapper, here's the error I'm getting in the browser console while running with
npm run dev
:I did a bit of digging and found that on line 58-60 of
aurelia-bootstrapper-webpack/dist/commonjs/aurelia-bootstrapper-webpack.js
exists the following code. I did a bit of console.logging and I've added some comments indicating the values being passed into here which produce this error.Why this is happening, I'm not exactly sure, but my
main.js
looks like this:I can strip it back to the following and still reproduce the error:
Any ideas?
The text was updated successfully, but these errors were encountered: