Skip to content

Uncaught Error: No such file or directory (os error 2), readdir 'views/partials/' for path "views/partials/" #19

@yogiswar1987

Description

@yogiswar1987

Coded just how you asked in a bug
Using
MAC Monterey 12.6
Deno 1.28.3

import { Application, Router, Status } from 'https://deno.land/x/oak/mod.ts'
import { Handlebars } from 'https://deno.land/x/handlebars/mod.ts'

const handle = new Handlebars();
console.log(await handle.renderView('index', {}));

getting below error

IN-MAC-163:ott yreddivari$ deno run --allow-read index.ts
Download ⠇ https://deno.land/x/oak/mod.ts Warning Implicitly using latest version (v11.1.0) for https://deno.land/x/oak/mod.ts
Download ⠋ https://deno.land/x/[email protected]/mod.ts Warning Implicitly using latest version (v0.9.0) for https://deno.land/x/handlebars/mod.ts
error: Uncaught Error: No such file or directory (os error 2), readdir 'views/partials/' for path "views/partials/"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions