-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
I'm trying to migrate a project slowly to scala.js and am having trouble getting my components to be recognized in my (TypeScript) NgModule definition.
I import the symbol for the component
import scalajs from './common/scala.js'
and then reference it as:
scalajs.com.transit.MyRegions
but get the error:
Unexpected value '$c_Lcom_transit_MyRegions' declared by the module 'AppModule'
Error: Unexpected value '$c_Lcom_transit_MyRegions' declared by the module 'AppModule'
at http://localhost:8100/build/main.js:31990:27
at Array.forEach (native)
at CompileMetadataResolver._loadNgModuleMetadata (http://localhost:8100/build/main.js:31970:54)
at CompileMetadataResolver.loadNgModuleMetadata (http://localhost:8100/build/main.js:31893:29)
at RuntimeCompiler._loadModules (http://localhost:8100/build/main.js:47271:41)
at RuntimeCompiler._compileModuleAndComponents (http://localhost:8100/build/main.js:47241:35)
at RuntimeCompiler.compileModuleAsync (http://localhost:8100/build/main.js:47231:21)
at PlatformRef_._bootstrapModuleWithZone (http://localhost:8100/build/main.js:34121:25)
at PlatformRef_.bootstrapModule (http://localhost:8100/build/main.js:34103:21)
at Object.<anonymous> (http://localhost:8100/build/main.js:123863:124)
hunting through the JavaScript I see that this is because it fails to reflectively find the annotations (Decorators) whereas for components defined in TS this succeeds.
I've tried adding @classModeJS but this makes no difference.
Using version 0.0.5
Metadata
Metadata
Assignees
Labels
No labels