-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with latest release 2.4.3 #487
Comments
That's too few info to help you. I need to know how you load everything. Create a jsfiddle/plunkr as asked when you open an issue. |
I'm seeing this issue when using the standalone version with Node and Webpack, though the issue persists across all 2.4.* versions that are in NPM.
Results in the following error in the console:
That is line 415 I get a whole ton of other dependency issues when I try using the |
Well that clearly means doT is not loaded. The standalone version cannot work with CommonJS because it tries to export three things (extendext, doT and QueryBuilder). Use the non-standalone version and add jquery-extendext and dot to your build. I do plan to migrate the sources to CommonJS to directly supports Webpack but not right now. |
When I use non-standalone as such:
this is what I get during the build (same if I use require syntax instead of import syntax):
and
That stems from importing the file incorrectly: your code does |
When I manually change that line as suggested to
in my source code, it works as expected. Should I put in a fix in a pull request or are there other considerations? |
Right, doT main files changed a while ago to a Node specific one and I messed up for extendext. I will make the change in .wrapper.js and also add the CommonJS part, it should fix it for now before cleaning up the sources (which could take advantage of the tree shaking if one does not use all plugins). |
@ozzyogkush , not sure if it's any use - but a workaround for this (until fix released) without editing files in your resolve: {
alias: {
"jQuery.extendext": "jquery-extendext/jQuery.extendext.js",
"dot": "dot/doT.js"
}
}, |
I am working with the library for the first time, configuring it doesn't seem to be working. I have setup the the library to work with angular, and configuration are as below:
but getting below error:
But i get the below error
I tried bypassing it by providing
templates: []
, but that leads to another error as below:Can you please point me to the right direction.
The text was updated successfully, but these errors were encountered: