Open
Description
Bug Report 🐛
Trying to reconstruct a template programmatically in Javascript:
const { Template, Clause } = require("@accordproject/cicero-core");
Fails with version-respecting .cto
files (now required in 0.24.0
) because it looks for the file loader from ergo-compiler
.
Examining the templateloader.js
file in node_modules/@accordproject/cicero-core/lib/templateloader.js
the following can be seen in lines 26 and 27.
var Logger = require('@accordproject/ergo-compiler').Logger;
var FileLoader = require('@accordproject/ergo-compiler').FileLoader;
This templateloader.js
file is not the same templateloader.js
that exists in this repo under src/templateloader.js
My package.json
contains "@accordproject/cicero-core": "^0.24.0",
as a dependency
Expected Behavior
Should load files without using ergo-compiler
's template loader
Current Behavior
Fails
Possible Solution
Update npmjs with version in this repo
Steps to Reproduce
Context (Environment)
Desktop
- MacOS
- Browser: [e.g. Chrome, Safari]
- Version: 0.24.0
Detailed Description
Possible Implementation
Metadata
Metadata
Assignees
Labels
No labels