Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No reflection for syntax kind 'UnknownKeyword' found. #26

Open
DimitryNechaev opened this issue Nov 2, 2020 · 3 comments
Open

No reflection for syntax kind 'UnknownKeyword' found. #26

DimitryNechaev opened this issue Nov 2, 2020 · 3 comments

Comments

@DimitryNechaev
Copy link

DimitryNechaev commented Nov 2, 2020

I'm having an issue that production js contains phisical folder names for runtime-interfaces output.
I'm on version 0.1.35

Once I switch on 0.2.0 it generates error. It will generate the error even if I comment out the content of the source ts file

node node_modules/ts-runtime/bin/index.js src/app/glb/ts/runtime-interfaces.ts

i ts-runtime v0.2.0
√ Processing (1s)
√ Scanning (22ms)
√ Transforming (28ms)
× No reflection for syntax kind 'UnknownKeyword' found.
× Emitting was interrupted.

@fabiandev
Copy link
Owner

There are certain syntax kinds that are not supported. However, I've just pushed v0.3.0, which should only emit warnings instead of failing the build.

@DimitryNechaev
Copy link
Author

DimitryNechaev commented Nov 24, 2020

hi @fabiandev

Thanks for the fix, I can now update to latest.
After the update I still experience the issue which forced me to update in the first place, as I hoped it would have been fixed in later releases.
When I build on my machine it generates interfaces with physical path references:
image

In runtime they fail to work generating warnings:
image

I used webpack 3 and node 10.5, now using webpack 4 same node and tried webpack 4 with node 15. All the same.
The code is generated this way in both 0.1.35 and latest versions.

Is it known issue? What is the workaround? Is there a permanent fix?

UPD: more screenshots
expected - build result from another machine, 3rd pty developer:
image

build on my machine, same node version:
image

@fabiandev
Copy link
Owner

Which OS is the other machine running? It may be a problem with that, i.e., Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants