Code Monkey home page Code Monkey logo

Comments (7)

tripodsan avatar tripodsan commented on August 25, 2024 1

thanks, I will look into it as soon as I have time....

from htlengine.

tripodsan avatar tripodsan commented on August 25, 2024

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.

struct78 avatar struct78 commented on August 25, 2024

@tripodsan Unfortunately not. I'll try and make a public repo with some sample code if I get the time.

from htlengine.

struct78 avatar struct78 commented on August 25, 2024

@tripodsan Here is some sample code that closely matches our setup https://github.com/struct78/htlengine-issue-114

from htlengine.

tripodsan avatar tripodsan commented on August 25, 2024

ok, I see the problem. you are using the compileToFunction() which fakes the module and uses the require of the compiler.

from htlengine.

tripodsan avatar tripodsan commented on August 25, 2024

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.

adobe-bot avatar adobe-bot commented on August 25, 2024

🎉 This issue has been resolved in version 3.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

from htlengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.