Comments (7)
thanks, I will look into it as soon as I have time....
from htlengine.
I think the update from 3.2.7 to 3.2.8 should have had a major version bump.
yes. you're probably right.
the use classes now follow the nodejs require semantic. if the name doesn't start with a ./
, it is considered a global module, otherwise it is relative to the htl file. I think the bug here is that it doesn't check for ../
. so you could try to reference it with ./../modules/com.companyname.project.InlineSvgUtility.js
, depending where your .htl
is.
another possibility could be to add the src/modules
path to the module path when running your script. maybe you can play around with NODE_PATH
.
@struct78 any chance our source code is public?
from htlengine.
@tripodsan Unfortunately not. I'll try and make a public repo with some sample code if I get the time.
from htlengine.
@tripodsan Here is some sample code that closely matches our setup https://github.com/struct78/htlengine-issue-114
from htlengine.
ok, I see the problem. you are using the compileToFunction()
which fakes the module
and uses the require
of the compiler.
from htlengine.
nodejs 10.12 added: https://nodejs.org/docs/latest-v10.x/api/modules.html#modules_module_createrequirefrompath_filename
which would be an easy way to add the useDirectory
to the module paths...
from htlengine.
🎉 This issue has been resolved in version 3.3.1 🎉
The release is available on:
Your semantic-release bot 📦🚀
from htlengine.
Related Issues (20)
- SymbolGenerator variableName issue with - HOT 1
- Generated JS code from Calendar WCM Core Components has duplicate constants names HOT 2
- Error in generated JS from compiler HOT 1
- Error when runtime global name contains special characters HOT 4
- regression: error when iterating over undefined property HOT 1
- multiple data-sly-use work in java (aem) and in 5.1.0 but fail in 6.3.1 HOT 2
- @adobe/htlengine 6.x - variables are converted to lowercase and break HOT 4
- Error after 6.3.3 upgrade HOT 1
- Case insensitivity breaks template call in 6.3.4 HOT 3
- 6.3.4 adds Proxy and breaks IE11 support HOT 4
- Uncaught TypeError: key.toLowerCase is not a function HOT 1
- Standard meta tags wrongly escaped inside "simple2.html" file HOT 3
- Dependency Dashboard
- Cannot install with node16 HOT 2
- Running src/cli.js prints undefined
- Adobe HTL engine not working with Typescript HOT 1
- Fix code scanning alert - Incomplete string escaping or encoding
- Fix code scanning alert - Prototype-polluting assignment
- Can't configure ELEMENT_NAME_ACCEPTLIST.
- Module Not Found errors when upgrading from v3.2.5 to latest HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from htlengine.