Oxooxo
Oxooxo
DDeno
Created by Oxooxo on 1/30/2025 in #help
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.
import validateSchema from 'npm:xsd-validator';
import validateSchema from 'npm:xsd-validator';
` In v2.1.7 I got the hint to install
deno install npm:libxmljs@1.0.11
deno install npm:libxmljs@1.0.11
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:
error: Uncaught (in promise) Error: Could not locate the bindings file. Tried:
→ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/xmljs.node
→ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/Debug/xmljs.node
→ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/Release/xmljs.node
→ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/out/Debug/xmljs.node
→ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/Debug/xmljs.node
→ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/out/Release/xmljs.node
→ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/Release/xmljs.node
→ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/default/xmljs.node
→ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/compiled/20.11.1/darwin/arm64/xmljs.node
at bindings (file:///Users/me/workspace/me/Tool/node_modules/.deno/bindings@1.3.1/node_modules/bindings/bindings.js:96:9)
at Object.<anonymous> (file:///Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/dist/lib/bindings/index.js:5:16)
at Object.<anonymous> (file:///Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/dist/lib/bindings/index.js:49:4)
error: Uncaught (in promise) Error: Could not locate the bindings file. Tried:
→ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/xmljs.node
→ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/Debug/xmljs.node
→ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/Release/xmljs.node
→ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/out/Debug/xmljs.node
→ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/Debug/xmljs.node
→ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/out/Release/xmljs.node
→ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/Release/xmljs.node
→ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/default/xmljs.node
→ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/compiled/20.11.1/darwin/arm64/xmljs.node
at bindings (file:///Users/me/workspace/me/Tool/node_modules/.deno/bindings@1.3.1/node_modules/bindings/bindings.js:96:9)
at Object.<anonymous> (file:///Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/dist/lib/bindings/index.js:5:16)
at Object.<anonymous> (file:///Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/dist/lib/bindings/index.js:49:4)
` Any ideas?
3 replies
DDeno
Created by Oxooxo on 1/28/2025 in #help
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
DDeno
Created by Oxooxo on 1/26/2025 in #help
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
DDeno
Created by Oxooxo on 1/20/2025 in #help
node-pre-gyp problem on macOs
Hi all, I want to use import validateSchema from 'npm:xsd-validator'; which requires to run deno install --allow-scripts=npm:libxmljs@1.0.11 but this fails on my mac with deno 2.1.6 How can I fix this?
5 replies
DDeno
Created by Oxooxo on 1/13/2025 in #help
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