Oxooxo
validateSchema getting better with v2.1.8 - but still not yet working
Hi all 👋 ,
I want to validate some xml files to a given xsd.
npm:xsd-validator
seems to be promising so I want to use it.
`
In v2.1.7 I got the hint to install
which failed with some node-gyp error. This seems to be soled now in v2.1.8.
It goes through without an error now.
Thanks :deno_logo:.
But I still get an error:
`
Any ideas?
3 replies
How to get problems solved
Hi all,
I would like to know where is the best place to ask for help (and get answers) for someone who wants to move stuff from node to deno?
Is it here in this channel or should I better try in one of the project-channels?
Denos approach is super cool, but it is so hard to transfer simple things from node to deno.
For me it does not feel like flying with the feet above the ground, more as having concrete shoes. Sorry.
I have two open posts here in the help channel without any answer, even not a question to add some details (that may be missing).
So how could I get these blockers solved?
4 replies
Uncaught (in promise) TypeError: Reflect.getMetadata is not a function
Hi all,
I'm trying to use dtos like I'm used to in nodejs.
I have the following imports
import { validate } from "npm:class-validator@0.14.1";
import { plainToClass } from "npm:class-transformer@0.5.1";
And I get the following error:
error: Uncaught (in promise) TypeError: Reflect.getMetadata is not a function
at file:///Users/foo/Library/Caches/deno/npm/registry.npmjs.org/class-transformer/0.5.1/cjs/decorators/type.decorator.js:13:39
How can I fix it?
3 replies
error: module 'node:fs' does not provide an export named 'globSync'
Documentation (https://docs.deno.com/api/node/fs/~/globSync) says:
import { globSync } from "node:fs";
But that just doesn't work.
error: Uncaught SyntaxError: The requested module 'node:fs' does not provide an export named 'globSync' import { globSync } from "node:fs"; ^
How can I get it working?
1 replies