Git Product home page Git Product logo

digitalgardendocs's People

Contributors

gmuller avatar oleeskild avatar shmuga avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

andresestrella

digitalgardendocs's Issues

Having trouble rendering njk template ./src/site/feed.njk

I clone the repo and build it on my local. It gives errors Having trouble rendering njk template ./src/site/feed.njk (via TemplateContentRenderError)

Here is the full log:

npm install

PS D:\Programming\test zone\digitalgardendocs> npm install 
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)

added 528 packages, and audited 529 packages in 2m

88 packages are looking for funding
  run `npm fund` for details

14 vulnerabilities (6 moderate, 5 high, 3 critical)

To address issues that do not require attention, run:
  npm audit fix

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

npm run build

PS D:\Programming\test zone\digitalgardendocs> npm run build

> [email protected] build
> npm-run-all get-theme build:*


> [email protected] get-theme
> node src/site/get-theme.js


> [email protected] build:eleventy
> cross-env ELEVENTY_ENV=prod NODE_OPTIONS=--max-old-space-size=4096 eleventy

[11ty] Problem writing Eleventy templates: (more in DEBUG output)
[11ty] 1. Having trouble rendering njk template ./src/site/feed.njk (via TemplateContentRenderError)
[11ty] 2. (./src/site/feed.njk)
[11ty]   TypeError: fileLink.replaceAll is not a function (via Template render error)
[11ty] 
[11ty] Original error stack trace: Template render error: (./src/site/feed.njk)
[11ty]   TypeError: fileLink.replaceAll is not a function
[11ty]     at Object._prettifyError (D:\Programming\test zone\digitalgardendocs\node_modules\nunjucks\src\lib.js:36:11)
[11ty]     at D:\Programming\test zone\digitalgardendocs\node_modules\nunjucks\src\environment.js:563:19
[11ty]     at Template.root [as rootRenderFunc] (eval at _compile (D:\Programming\test zone\digitalgardendocs\node_modules\nunjucks\src\environment.js:633:18), <anonymous>:84:3)
[11ty]     at Template.render (D:\Programming\test zone\digitalgardendocs\node_modules\nunjucks\src\environment.js:552:10)        
[11ty]     at D:\Programming\test zone\digitalgardendocs\node_modules\@11ty\eleventy\src\Engines\Nunjucks.js:434:14
[11ty]     at new Promise (<anonymous>)
[11ty]     at D:\Programming\test zone\digitalgardendocs\node_modules\@11ty\eleventy\src\Engines\Nunjucks.js:433:14
[11ty]     at Template._render (D:\Programming\test zone\digitalgardendocs\node_modules\@11ty\eleventy\src\TemplateContent.js:507:28)
[11ty]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[11ty]     at async Template.renderWithoutLayout (D:\Programming\test zone\digitalgardendocs\node_modules\@11ty\eleventy\src\Template.js:456:27)
[11ty] Copied 1 file / Wrote 0 files in 4.47 seconds (v2.0.0)
ERROR: "build:eleventy" exited with 1.

I have tried adding the app.js file but that error still occurs.

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.