Skip to content

Examples don't work? #2

@mindplay-dk

Description

@mindplay-dk

I checked out the example repo - as mentioned here, I can't get it to work.

Is this example supposed to work? I was able to run it, but both URLs return an empty response.

Do you have any working examples that currently run?

Are there any specific requirements to get them running? You didn't check in your package-lock.json, so I might be getting some newer dependencies that don't work anymore?

I also noticed this in the main repo, which looks similar and newer, but doesn't seem to have the route function?

I tried adding this line to registerControllers:

console.log(Metadata.getTypes().map(t => t.id));

It looks like only the built-in types can be reflected:

[
  '::invalid::Invalid',
  '::native::any',
  '::native::unknown',
  '::native::void',
  '::native::never',
  '::native::null',
  '::native::undefined',
  '::native::object',
  '::native::String',
  '::native::Number',
  '::native::BigInt',
  '::native::Boolean',
  '::native::true',
  '::native::false',
  '::native::Date',
  '::native::Error',
  '::native::Symbol',
  '::native::UniqueSymbol',
  '::native::RegExp',
  '::native::Int8Array',
  '::native::Uint8Array',
  '::native::Uint8ClampedArray',
  '::native::Int16Array',
  '::native::Uint16Array',
  '::native::Int32Array',
  '::native::Uint32Array',
  '::native::Float32Array',
  '::native::Float64Array',
  '::native::BigInt64Array',
  '::native::BigUint64Array',
  '::native::ArrayBuffer',
  '::native::SharedArrayBuffer',
  '::native::Atomics',
  '::native::DataView',
  '::native::Array{::native::Any}',
  '::native::Function'
]

I checked against reflection.config.json and tsconfig.json in dev/hookyns/2 in the main repo and tried a bunch of different settings - no luck, but I also don't see anything that looks wrong to me.

Also updated from alpha.6 to alpha.7 release.

Really excited to try this out, but no idea what else to try...

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