Illegal cyclic reference involving type ReactNode
For @types/react >= 17.0.32
[error] .../scala-2.13/src_managed/main/scalablytyped/stRaw/react/mod/package.scala:1035:64: illegal cyclic reference involving type ReactNode
[error] type ReactFragment = js.Object | js.Iterable[stRaw.react.mod.ReactNode]
caused by:
type ReactFragment = js.Object | js.Iterable[stRaw.react.mod.ReactNode]
type ReactNode = js.UndefOr[
stRaw.react.mod.ReactChild | stRaw.react.mod.ReactFragment | stRaw.react.mod.ReactPortal | scala.Boolean
]
Thanks for the report!
Since it affects react it should be fixed soon, I'll see if I can get to it tomorrow.
There is already a some logic in place to decyclify things like this. I'll venture a guess it handles arrays better than Iterables as of now
First observation is that this worked on scala 3.1.0
also for scala 2.13. this was version @types/react: 17.0.39
hmm. seemed to work for 17.0.32 as well.
Mind supplying a bit more info here? if you're using sbt and the plugin, run this:
sbt> debug
sbt> stImport
[debug] ScalablyTypedConverterPlugin.scala:44 input.asJson.spaces2 {
[debug] "converterVersion" : "1.0.0-beta37",
[debug] "conversion" : {
[debug] "useScalaJsDomTypes" : true,
[debug] "flavour" : "normal",
[debug] "outputPackage" : "typings",
[debug] "enableScalaJsDefined" : {
[debug] "AllExcept" : {
[debug] "values" : [
[debug] ]
[debug] }
[debug] },
[debug] "stdLibs" : [
[debug] "dom",
[debug] "es6"
[debug] ],
[debug] "expandTypeMappings" : {
[debug] "AllExcept" : {
[debug] "values" : [
[debug] "prop-types",
[debug] "react",
[debug] "std"
[debug] ]
[debug] }
[debug] },
[debug] "ignored" : [
[debug] "typescript"
[debug] ],
[debug] "versions" : {
[debug] "scala" : "3.1.0",
[debug] "scalaJs" : "1.8.0"
[debug] },
[debug] "organization" : "org.scalablytyped",
[debug] "enableReactTreeShaking" : {
[debug] "NoneExcept" : {
[debug] "values" : [
[debug] ]
[debug] }
[debug] },
[debug] "enableLongApplyMethod" : false,
[debug] "privateWithin" : null
[debug] },
[debug] "wantedLibs" : {
[debug] "vue" : "2.6.11"
[debug] }
[debug] } [project => vue, ms => 0]
It's not generating your expected debug info:
sbt:scalajs-react-aria> debug
sbt:scalajs-react-aria> stImport
[debug] Resolved the following dependencies: List((@react-aria/focus,3.5.0), (typescript,4.3), (@react-aria/interactions,3.7.0), (@types/react,17.0.32), (@react-aria/overlays,3.7.3))
[debug] Resolved the following dependencies: List((source-map-loader,0.2.3), (webpack,4.32.2), (concat-with-sourcemaps,1.0.7), (webpack-cli,3.3.2), (webpack-dev-server,3.4.1))
[debug] Writing 'package.json'
[info] Updating NPM dependencies
[debug] Command: npm install
[error] npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
[error] npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
[error] npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
[error] npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
[error] npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
[error] npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
[error] npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
[error] npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
[error] npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
[error] npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
[info] added 643 packages, and audited 644 packages in 17s
[info] 21 packages are looking for funding
[info] run `npm fund` for details
[info] 16 vulnerabilities (2 low, 8 moderate, 6 high)
[info] To address issues that do not require attention, run:
[info] npm audit fix
[info] To address all issues, run:
[info] npm audit fix --force
[info] Run `npm audit` for details.
[warn] Phase1ReadTypescript.scala:167 Could not find typescript definitions for dependency @babel/runtime [thread => 140, project => scalajs-react-aria, ms => 17829, phase => typescript, id => @react-aria/focus]
[warn] Phase1ReadTypescript.scala:204 Processing std [thread => 140, project => scalajs-react-aria, ms => 18818, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/typescript/lib, phase => typescript, id => std]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(intrinsic))) [thread => 140, project => scalajs-react-aria, ms => 19864, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclTypeAlias(Uppercase)), id => std]
[warn] QualifyReferences.scala:72 msg Couldn't qualify intrinsic [thread => 140, project => scalajs-react-aria, ms => 19874, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclTypeAlias(Uppercase)), id => std]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(intrinsic))) [thread => 140, project => scalajs-react-aria, ms => 19874, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclTypeAlias(Lowercase)), id => std]
[warn] QualifyReferences.scala:72 msg Couldn't qualify intrinsic [thread => 140, project => scalajs-react-aria, ms => 19875, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclTypeAlias(Lowercase)), id => std]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(intrinsic))) [thread => 140, project => scalajs-react-aria, ms => 19876, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclTypeAlias(Capitalize)), id => std]
[warn] QualifyReferences.scala:72 msg Couldn't qualify intrinsic [thread => 140, project => scalajs-react-aria, ms => 19876, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclTypeAlias(Capitalize)), id => std]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(intrinsic))) [thread => 140, project => scalajs-react-aria, ms => 19877, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclTypeAlias(Uncapitalize)), id => std]
[warn] QualifyReferences.scala:72 msg Couldn't qualify intrinsic [thread => 140, project => scalajs-react-aria, ms => 19877, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclTypeAlias(Uncapitalize)), id => std]
[warn] Phase1ReadTypescript.scala:204 Processing prop-types [thread => 140, project => scalajs-react-aria, ms => 22115, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@types/prop-types, phase => typescript, id => prop-types]
[warn] Phase1ReadTypescript.scala:204 Processing scheduler [thread => 140, project => scalajs-react-aria, ms => 22216, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@types/scheduler, phase => typescript, id => scheduler]
[warn] SimplifyRecursiveTypeAlias.scala:14 msg Simplified recursive type alias scheduler.scheduler.FrameCallbackType [thread => 140, project => scalajs-react-aria, ms => 22245, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(scheduler) / TsDeclTypeAlias(FrameCallbackType) / TsTypeFunction() / TsFunSig() / TsTypeUnion() / TsTypeRef()), id => scheduler]
[warn] Phase1ReadTypescript.scala:204 Processing csstype [thread => 140, project => scalajs-react-aria, ms => 22315, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/csstype, phase => typescript, id => csstype]
[warn] Phase1ReadTypescript.scala:204 Processing react [thread => 140, project => scalajs-react-aria, ms => 23074, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@types/react, phase => typescript, id => react]
[warn] Phase1ReadTypescript.scala:204 Processing @react-types/shared [thread => 140, project => scalajs-react-aria, ms => 23459, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@react-types/shared, phase => typescript, id => @react-types/shared]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(AsyncIterable))) [thread => 140, project => scalajs-react-aria, ms => 23477, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@react-types/shared/src/dnd) / TsExport() / Tree() / TsDeclInterface(DirectoryItem) / TsMemberFunction(getEntries) / TsFunSig() / TsTypeRef()), id => @react-types/shared]
[warn] QualifyReferences.scala:72 msg Couldn't qualify AsyncIterable<FileItem | DirectoryItem> [thread => 140, project => scalajs-react-aria, ms => 23478, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@react-types/shared/src/dnd) / TsExport() / Tree() / TsDeclInterface(DirectoryItem) / TsMemberFunction(getEntries) / TsFunSig() / TsTypeRef()), id => @react-types/shared]
[warn] Phase1ReadTypescript.scala:167 Could not find typescript definitions for dependency @babel/runtime [thread => 140, project => scalajs-react-aria, ms => 23562, phase => typescript, id => @react-aria/interactions]
[warn] Phase1ReadTypescript.scala:167 Could not find typescript definitions for dependency @babel/runtime [thread => 140, project => scalajs-react-aria, ms => 23568, phase => typescript, id => @react-aria/utils]
[warn] Phase1ReadTypescript.scala:167 Could not find typescript definitions for dependency @babel/runtime [thread => 140, project => scalajs-react-aria, ms => 23570, phase => typescript, id => @react-aria/ssr]
[warn] Phase1ReadTypescript.scala:204 Processing @react-aria/ssr [thread => 140, project => scalajs-react-aria, ms => 23572, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@react-aria/ssr, phase => typescript, id => @react-aria/ssr]
[warn] Phase1ReadTypescript.scala:167 Could not find typescript definitions for dependency @babel/runtime [thread => 140, project => scalajs-react-aria, ms => 23580, phase => typescript, id => @react-stately/utils]
[warn] Phase1ReadTypescript.scala:204 Processing @react-stately/utils [thread => 140, project => scalajs-react-aria, ms => 23582, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@react-stately/utils, phase => typescript, id => @react-stately/utils]
[warn] Phase1ReadTypescript.scala:204 Processing clsx [thread => 140, project => scalajs-react-aria, ms => 23589, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/clsx, phase => typescript, id => clsx]
[warn] Phase1ReadTypescript.scala:204 Processing @react-aria/utils [thread => 140, project => scalajs-react-aria, ms => 23594, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@react-aria/utils, phase => typescript, id => @react-aria/utils]
[warn] Phase1ReadTypescript.scala:204 Processing @react-aria/interactions [thread => 140, project => scalajs-react-aria, ms => 23653, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@react-aria/interactions, phase => typescript, id => @react-aria/interactions]
[warn] Phase1ReadTypescript.scala:204 Processing @react-aria/focus [thread => 140, project => scalajs-react-aria, ms => 23671, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@react-aria/focus, phase => typescript, id => @react-aria/focus]
[warn] Phase2ToScalaJs.scala:64 Processing std [thread => 140, project => scalajs-react-aria, ms => 24548, phase => scala.js, id => std]
[warn] Phase2ToScalaJs.scala:64 Processing prop-types [thread => 140, project => scalajs-react-aria, ms => 37816, phase => scala.js, id => prop-types]
[warn] Phase2ToScalaJs.scala:64 Processing scheduler [thread => 140, project => scalajs-react-aria, ms => 37845, phase => scala.js, id => scheduler]
[warn] Phase2ToScalaJs.scala:64 Processing csstype [thread => 140, project => scalajs-react-aria, ms => 37897, phase => scala.js, id => csstype]
[warn] Phase2ToScalaJs.scala:64 Processing react [thread => 140, project => scalajs-react-aria, ms => 39016, phase => scala.js, id => react]
[warn] Phase2ToScalaJs.scala:64 Processing @react-types/shared [thread => 140, project => scalajs-react-aria, ms => 39215, phase => scala.js, id => @react-types/shared]
[warn] Phase2ToScalaJs.scala:64 Processing @react-aria/focus [thread => 140, project => scalajs-react-aria, ms => 39283, phase => scala.js, id => @react-aria/focus]
[warn] Phase2ToScalaJs.scala:64 Processing @react-aria/interactions [thread => 140, project => scalajs-react-aria, ms => 45170, phase => scala.js, id => @react-aria/interactions]
[warn] Phase1ReadTypescript.scala:167 Could not find typescript definitions for dependency @babel/runtime [thread => 140, project => scalajs-react-aria, ms => 45188, phase => typescript, id => @react-aria/overlays]
[warn] Phase1ReadTypescript.scala:167 Could not find typescript definitions for dependency dom-helpers [thread => 140, project => scalajs-react-aria, ms => 45188, phase => typescript, id => @react-aria/overlays]
[warn] Phase1ReadTypescript.scala:167 Could not find typescript definitions for dependency react-dom [thread => 140, project => scalajs-react-aria, ms => 45188, phase => typescript, id => @react-aria/overlays]
[warn] Phase1ReadTypescript.scala:167 Could not find typescript definitions for dependency @babel/runtime [thread => 140, project => scalajs-react-aria, ms => 45190, phase => typescript, id => @react-aria/i18n]
[warn] Phase1ReadTypescript.scala:167 Could not find typescript definitions for dependency @babel/runtime [thread => 140, project => scalajs-react-aria, ms => 45191, phase => typescript, id => @internationalized/date]
[warn] Phase1ReadTypescript.scala:204 Processing @internationalized/date [thread => 140, project => scalajs-react-aria, ms => 45199, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@internationalized/date, phase => typescript, id => @internationalized/date]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(DateTimeFormatPart))) [thread => 140, project => scalajs-react-aria, ms => 45209, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@internationalized/date) / TsExport() / Tree() / TsDeclClass(DateFormatter) / TsMemberFunction(formatToParts) / TsFunSig() / TsTypeRef() / TsTypeRef()), id => @internationalized/date]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.DateTimeFormatPart [thread => 140, project => scalajs-react-aria, ms => 45210, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@internationalized/date) / TsExport() / Tree() / TsDeclClass(DateFormatter) / TsMemberFunction(formatToParts) / TsFunSig() / TsTypeRef() / TsTypeRef()), id => @internationalized/date]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(DateTimeFormatPart))) [thread => 140, project => scalajs-react-aria, ms => 45210, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@internationalized/date) / TsDeclInterface(DateRangeFormatPart) / TsTypeRef()), id => @internationalized/date]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.DateTimeFormatPart [thread => 140, project => scalajs-react-aria, ms => 45210, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@internationalized/date) / TsDeclInterface(DateRangeFormatPart) / TsTypeRef()), id => @internationalized/date]
[warn] Phase1ReadTypescript.scala:167 Could not find typescript definitions for dependency @babel/runtime [thread => 140, project => scalajs-react-aria, ms => 45234, phase => typescript, id => @internationalized/message]
[warn] Phase1ReadTypescript.scala:204 Processing tslib [thread => 140, project => scalajs-react-aria, ms => 45415, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/tslib, phase => typescript, id => tslib]
[warn] Phase1ReadTypescript.scala:204 Processing @formatjs/intl-localematcher [thread => 140, project => scalajs-react-aria, ms => 45424, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@formatjs/intl-localematcher, phase => typescript, id => @formatjs/intl-localematcher]
[warn] Phase1ReadTypescript.scala:204 Processing @formatjs/ecma402-abstract [thread => 140, project => scalajs-react-aria, ms => 45442, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@formatjs/ecma402-abstract, phase => typescript, id => @formatjs/ecma402-abstract]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(PluralRules))) [thread => 140, project => scalajs-react-aria, ms => 45466, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/NumberFormat/format_to_parts) / TsExport() / Tree() / TsDeclFunction(formatToParts) / TsFunSig() / TsFunParam() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.PluralRules [thread => 140, project => scalajs-react-aria, ms => 45467, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/NumberFormat/format_to_parts) / TsExport() / Tree() / TsDeclFunction(formatToParts) / TsFunSig() / TsFunParam() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(PluralRules))) [thread => 140, project => scalajs-react-aria, ms => 45473, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/lib/NumberFormat/format_to_parts) / TsExport() / Tree() / TsDeclFunction(formatToParts) / TsFunSig() / TsFunParam() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.PluralRules [thread => 140, project => scalajs-react-aria, ms => 45473, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/lib/NumberFormat/format_to_parts) / TsExport() / Tree() / TsDeclFunction(formatToParts) / TsFunSig() / TsFunParam() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(DateTimeFormatPartTypes))) [thread => 140, project => scalajs-react-aria, ms => 45475, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/lib/types/date-time) / TsExport() / Tree() / TsDeclTypeAlias(IntlDateTimeFormatPartType) / TsTypeUnion() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.DateTimeFormatPartTypes [thread => 140, project => scalajs-react-aria, ms => 45475, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/lib/types/date-time) / TsExport() / Tree() / TsDeclTypeAlias(IntlDateTimeFormatPartType) / TsTypeUnion() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(PluralRules))) [thread => 140, project => scalajs-react-aria, ms => 45477, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/lib/types/number) / TsExport() / Tree() / TsDeclInterface(NumberFormatInternal) / TsMemberProperty(pl) / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.PluralRules [thread => 140, project => scalajs-react-aria, ms => 45477, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/lib/types/number) / TsExport() / Tree() / TsDeclInterface(NumberFormatInternal) / TsMemberProperty(pl) / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(NumberFormatPartTypes))) [thread => 140, project => scalajs-react-aria, ms => 45478, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/lib/types/number) / TsExport() / Tree() / TsDeclTypeAlias(NumberFormatPartTypes) / TsTypeUnion() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.NumberFormatPartTypes [thread => 140, project => scalajs-react-aria, ms => 45478, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/lib/types/number) / TsExport() / Tree() / TsDeclTypeAlias(NumberFormatPartTypes) / TsTypeUnion() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(RelativeTimeFormatUnit))) [thread => 140, project => scalajs-react-aria, ms => 45479, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/lib/types/relative-time) / TsExport() / Tree() / TsDeclTypeAlias(RelativeTimeFormatSingularUnit) / TsTypeRef() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.RelativeTimeFormatUnit [thread => 140, project => scalajs-react-aria, ms => 45480, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/lib/types/relative-time) / TsExport() / Tree() / TsDeclTypeAlias(RelativeTimeFormatSingularUnit) / TsTypeRef() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(PluralRules))) [thread => 140, project => scalajs-react-aria, ms => 45480, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/lib/types/relative-time) / TsExport() / Tree() / TsDeclInterface(RelativeTimeFormatInternal) / TsMemberProperty(pluralRules) / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.PluralRules [thread => 140, project => scalajs-react-aria, ms => 45480, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/lib/types/relative-time) / TsExport() / Tree() / TsDeclInterface(RelativeTimeFormatInternal) / TsMemberProperty(pluralRules) / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(ResolvedRelativeTimeFormatOptions))) [thread => 140, project => scalajs-react-aria, ms => 45481, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/lib/types/relative-time) / TsExport() / Tree() / TsDeclInterface(RelativeTimeFormatInternal) / TsMemberProperty(style) / TsTypeLookup() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.ResolvedRelativeTimeFormatOptions [thread => 140, project => scalajs-react-aria, ms => 45481, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/lib/types/relative-time) / TsExport() / Tree() / TsDeclInterface(RelativeTimeFormatInternal) / TsMemberProperty(style) / TsTypeLookup() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(ResolvedRelativeTimeFormatOptions))) [thread => 140, project => scalajs-react-aria, ms => 45481, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/lib/types/relative-time) / TsExport() / Tree() / TsDeclInterface(RelativeTimeFormatInternal) / TsMemberProperty(numeric) / TsTypeLookup() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.ResolvedRelativeTimeFormatOptions [thread => 140, project => scalajs-react-aria, ms => 45482, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/lib/types/relative-time) / TsExport() / Tree() / TsDeclInterface(RelativeTimeFormatInternal) / TsMemberProperty(numeric) / TsTypeLookup() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(DateTimeFormatPartTypes))) [thread => 140, project => scalajs-react-aria, ms => 45483, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/types/date-time) / TsExport() / Tree() / TsDeclTypeAlias(IntlDateTimeFormatPartType) / TsTypeUnion() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.DateTimeFormatPartTypes [thread => 140, project => scalajs-react-aria, ms => 45484, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/types/date-time) / TsExport() / Tree() / TsDeclTypeAlias(IntlDateTimeFormatPartType) / TsTypeUnion() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(PluralRules))) [thread => 140, project => scalajs-react-aria, ms => 45486, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/types/number) / TsExport() / Tree() / TsDeclInterface(NumberFormatInternal) / TsMemberProperty(pl) / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.PluralRules [thread => 140, project => scalajs-react-aria, ms => 45487, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/types/number) / TsExport() / Tree() / TsDeclInterface(NumberFormatInternal) / TsMemberProperty(pl) / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(NumberFormatPartTypes))) [thread => 140, project => scalajs-react-aria, ms => 45489, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/types/number) / TsExport() / Tree() / TsDeclTypeAlias(NumberFormatPartTypes) / TsTypeUnion() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.NumberFormatPartTypes [thread => 140, project => scalajs-react-aria, ms => 45490, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/types/number) / TsExport() / Tree() / TsDeclTypeAlias(NumberFormatPartTypes) / TsTypeUnion() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(RelativeTimeFormatUnit))) [thread => 140, project => scalajs-react-aria, ms => 45493, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/types/relative-time) / TsExport() / Tree() / TsDeclTypeAlias(RelativeTimeFormatSingularUnit) / TsTypeRef() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.RelativeTimeFormatUnit [thread => 140, project => scalajs-react-aria, ms => 45493, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/types/relative-time) / TsExport() / Tree() / TsDeclTypeAlias(RelativeTimeFormatSingularUnit) / TsTypeRef() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(PluralRules))) [thread => 140, project => scalajs-react-aria, ms => 45494, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/types/relative-time) / TsExport() / Tree() / TsDeclInterface(RelativeTimeFormatInternal) / TsMemberProperty(pluralRules) / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.PluralRules [thread => 140, project => scalajs-react-aria, ms => 45494, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/types/relative-time) / TsExport() / Tree() / TsDeclInterface(RelativeTimeFormatInternal) / TsMemberProperty(pluralRules) / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(ResolvedRelativeTimeFormatOptions))) [thread => 140, project => scalajs-react-aria, ms => 45494, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/types/relative-time) / TsExport() / Tree() / TsDeclInterface(RelativeTimeFormatInternal) / TsMemberProperty(style) / TsTypeLookup() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.ResolvedRelativeTimeFormatOptions [thread => 140, project => scalajs-react-aria, ms => 45495, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/types/relative-time) / TsExport() / Tree() / TsDeclInterface(RelativeTimeFormatInternal) / TsMemberProperty(style) / TsTypeLookup() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(ResolvedRelativeTimeFormatOptions))) [thread => 140, project => scalajs-react-aria, ms => 45495, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/types/relative-time) / TsExport() / Tree() / TsDeclInterface(RelativeTimeFormatInternal) / TsMemberProperty(numeric) / TsTypeLookup() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.ResolvedRelativeTimeFormatOptions [thread => 140, project => scalajs-react-aria, ms => 45495, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/ecma402-abstract/types/relative-time) / TsExport() / Tree() / TsDeclInterface(RelativeTimeFormatInternal) / TsMemberProperty(numeric) / TsTypeLookup() / TsTypeRef()), id => @formatjs/ecma402-abstract]
[warn] Phase1ReadTypescript.scala:204 Processing @formatjs/fast-memoize [thread => 140, project => scalajs-react-aria, ms => 45663, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@formatjs/fast-memoize, phase => typescript, id => @formatjs/fast-memoize]
[warn] Phase1ReadTypescript.scala:204 Processing @formatjs/icu-skeleton-parser [thread => 140, project => scalajs-react-aria, ms => 45684, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@formatjs/icu-skeleton-parser, phase => typescript, id => @formatjs/icu-skeleton-parser]
[warn] Phase1ReadTypescript.scala:204 Processing @formatjs/icu-messageformat-parser [thread => 140, project => scalajs-react-aria, ms => 45725, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@formatjs/icu-messageformat-parser, phase => typescript, id => @formatjs/icu-messageformat-parser]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(PluralRulesOptions))) [thread => 140, project => scalajs-react-aria, ms => 45736, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/icu-messageformat-parser/lib/types) / TsExport() / Tree() / TsDeclInterface(PluralElement) / TsMemberProperty(pluralType) / TsTypeLookup() / TsTypeRef()), id => @formatjs/icu-messageformat-parser]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.PluralRulesOptions [thread => 140, project => scalajs-react-aria, ms => 45737, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/icu-messageformat-parser/lib/types) / TsExport() / Tree() / TsDeclInterface(PluralElement) / TsMemberProperty(pluralType) / TsTypeLookup() / TsTypeRef()), id => @formatjs/icu-messageformat-parser]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(PluralRulesOptions))) [thread => 140, project => scalajs-react-aria, ms => 45743, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/icu-messageformat-parser/types) / TsExport() / Tree() / TsDeclInterface(PluralElement) / TsMemberProperty(pluralType) / TsTypeLookup() / TsTypeRef()), id => @formatjs/icu-messageformat-parser]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.PluralRulesOptions [thread => 140, project => scalajs-react-aria, ms => 45744, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@formatjs/icu-messageformat-parser/types) / TsExport() / Tree() / TsDeclInterface(PluralElement) / TsMemberProperty(pluralType) / TsTypeLookup() / TsTypeRef()), id => @formatjs/icu-messageformat-parser]
[warn] Phase1ReadTypescript.scala:204 Processing intl-messageformat [thread => 140, project => scalajs-react-aria, ms => 45807, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/intl-messageformat, phase => typescript, id => intl-messageformat]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(PluralRules))) [thread => 140, project => scalajs-react-aria, ms => 45811, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(intl-messageformat/lib/src/formatters) / TsExport() / Tree() / TsDeclInterface(FormatterCache) / TsMemberProperty(pluralRules) / TsTypeRef() / TsTypeRef()), id => intl-messageformat]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.PluralRules [thread => 140, project => scalajs-react-aria, ms => 45811, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(intl-messageformat/lib/src/formatters) / TsExport() / Tree() / TsDeclInterface(FormatterCache) / TsMemberProperty(pluralRules) / TsTypeRef() / TsTypeRef()), id => intl-messageformat]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(PluralRules))) [thread => 140, project => scalajs-react-aria, ms => 45812, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(intl-messageformat/lib/src/formatters) / TsExport() / Tree() / TsDeclInterface(Formatters) / TsMemberFunction(getPluralRules) / TsFunSig() / TsTypeRef()), id => intl-messageformat]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.PluralRules [thread => 140, project => scalajs-react-aria, ms => 45813, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(intl-messageformat/lib/src/formatters) / TsExport() / Tree() / TsDeclInterface(Formatters) / TsMemberFunction(getPluralRules) / TsFunSig() / TsTypeRef()), id => intl-messageformat]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(PluralRules))) [thread => 140, project => scalajs-react-aria, ms => 45816, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(intl-messageformat/src/formatters) / TsExport() / Tree() / TsDeclInterface(FormatterCache) / TsMemberProperty(pluralRules) / TsTypeRef() / TsTypeRef()), id => intl-messageformat]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.PluralRules [thread => 140, project => scalajs-react-aria, ms => 45817, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(intl-messageformat/src/formatters) / TsExport() / Tree() / TsDeclInterface(FormatterCache) / TsMemberProperty(pluralRules) / TsTypeRef() / TsTypeRef()), id => intl-messageformat]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(PluralRules))) [thread => 140, project => scalajs-react-aria, ms => 45819, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(intl-messageformat/src/formatters) / TsExport() / Tree() / TsDeclInterface(Formatters) / TsMemberFunction(getPluralRules) / TsFunSig() / TsTypeRef()), id => intl-messageformat]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.PluralRules [thread => 140, project => scalajs-react-aria, ms => 45820, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(intl-messageformat/src/formatters) / TsExport() / Tree() / TsDeclInterface(Formatters) / TsMemberFunction(getPluralRules) / TsFunSig() / TsTypeRef()), id => intl-messageformat]
[warn] ResolveTypeQueries.scala:232 msg Couldn't resolve typeof Intl.PluralRules [thread => 140, project => scalajs-react-aria, ms => 45829, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(intl-messageformat/lib/src/formatters) / TsExport() / Tree() / TsDeclInterface(Formatters) / TsMemberFunction(getPluralRules) / TsFunSig() / TsFunParam() / TsTypeRef() / TsTypeQuery()), id => intl-messageformat]
[warn] ResolveTypeQueries.scala:232 msg Couldn't resolve typeof Intl.PluralRules [thread => 140, project => scalajs-react-aria, ms => 45830, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(intl-messageformat/src/formatters) / TsExport() / Tree() / TsDeclInterface(Formatters) / TsMemberFunction(getPluralRules) / TsFunSig() / TsFunParam() / TsTypeRef() / TsTypeQuery()), id => intl-messageformat]
[warn] Phase1ReadTypescript.scala:204 Processing @internationalized/message [thread => 140, project => scalajs-react-aria, ms => 45865, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@internationalized/message, phase => typescript, id => @internationalized/message]
[warn] Phase1ReadTypescript.scala:167 Could not find typescript definitions for dependency @babel/runtime [thread => 140, project => scalajs-react-aria, ms => 45869, phase => typescript, id => @internationalized/number]
[warn] Phase1ReadTypescript.scala:204 Processing @internationalized/number [thread => 140, project => scalajs-react-aria, ms => 45871, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@internationalized/number, phase => typescript, id => @internationalized/number]
[warn] TsTreeScope.scala:84 Cannot resolve TsQIdent(IArray(TsIdentSimple(Intl), TsIdentSimple(NumberFormatPart))) [thread => 140, project => scalajs-react-aria, ms => 45872, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@internationalized/number) / TsExport() / Tree() / TsDeclClass(NumberFormatter) / TsMemberFunction(formatToParts) / TsFunSig() / TsTypeRef() / TsTypeRef()), id => @internationalized/number]
[warn] QualifyReferences.scala:72 msg Couldn't qualify Intl.NumberFormatPart [thread => 140, project => scalajs-react-aria, ms => 45872, phase => typescript, scope => TreeScope(TsParsedFile() / TsDeclModule(@internationalized/number) / TsExport() / Tree() / TsDeclClass(NumberFormatter) / TsMemberFunction(formatToParts) / TsFunSig() / TsTypeRef() / TsTypeRef()), id => @internationalized/number]
[warn] Phase1ReadTypescript.scala:204 Processing @react-aria/i18n [thread => 140, project => scalajs-react-aria, ms => 45880, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@react-aria/i18n, phase => typescript, id => @react-aria/i18n]
[warn] Phase1ReadTypescript.scala:167 Could not find typescript definitions for dependency @babel/runtime [thread => 140, project => scalajs-react-aria, ms => 45892, phase => typescript, id => @react-stately/overlays]
[warn] Phase1ReadTypescript.scala:204 Processing @react-types/overlays [thread => 140, project => scalajs-react-aria, ms => 45897, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@react-types/overlays, phase => typescript, id => @react-types/overlays]
[warn] Phase1ReadTypescript.scala:204 Processing @react-stately/overlays [thread => 140, project => scalajs-react-aria, ms => 45904, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@react-stately/overlays, phase => typescript, id => @react-stately/overlays]
[warn] Phase1ReadTypescript.scala:204 Processing @react-types/button [thread => 140, project => scalajs-react-aria, ms => 45911, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@react-types/button, phase => typescript, id => @react-types/button]
[warn] Phase1ReadTypescript.scala:167 Could not find typescript definitions for dependency @babel/runtime [thread => 140, project => scalajs-react-aria, ms => 45920, phase => typescript, id => @react-aria/visually-hidden]
[warn] Phase1ReadTypescript.scala:204 Processing @react-aria/visually-hidden [thread => 140, project => scalajs-react-aria, ms => 45922, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@react-aria/visually-hidden, phase => typescript, id => @react-aria/visually-hidden]
[warn] Phase1ReadTypescript.scala:204 Processing @react-aria/overlays [thread => 140, project => scalajs-react-aria, ms => 45927, path => /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/scalajs-bundler/main/node_modules/@react-aria/overlays, phase => typescript, id => @react-aria/overlays]
[warn] Phase2ToScalaJs.scala:64 Processing @react-types/overlays [thread => 140, project => scalajs-react-aria, ms => 45945, phase => scala.js, id => @react-types/overlays]
[warn] Phase2ToScalaJs.scala:64 Processing @react-stately/overlays [thread => 140, project => scalajs-react-aria, ms => 45956, phase => scala.js, id => @react-stately/overlays]
[warn] Phase2ToScalaJs.scala:64 Processing @react-types/button [thread => 140, project => scalajs-react-aria, ms => 45965, phase => scala.js, id => @react-types/button]
[warn] Phase2ToScalaJs.scala:64 Processing @react-aria/overlays [thread => 140, project => scalajs-react-aria, ms => 45985, phase => scala.js, id => @react-aria/overlays]
[success] Total time: 49 s, completed Feb 17, 2022, 8:51:07 PM
Here's my project config with "@types/react" -> "17.0.32" causing the same compilation error after generation:
lazy val root = project
.in(file("."))
.settings(
name := "scalajs-react-aria",
moduleName := "scalajs-react-aria",
libraryDependencies ++= Seq(
"com.github.japgolly.scalajs-react" %%% "core" % "2.0.1",
"com.github.japgolly.scalajs-react" %%% "facade" % "2.0.1",
"com.beachape" %%% "enumeratum" % "1.7.0",
),
Compile / npmDependencies ++= Seq(
"@react-aria/focus" -> "3.5.0",
"@react-aria/interactions" -> "3.7.0",
"@react-aria/overlays" -> "3.7.3",
"@types/react" -> "17.0.32",
),
Compile / unmanagedSourceDirectories += baseDirectory.value / "src" / "main" / "stGen",
stOutputPackage := "stReactAria",
stSourceGenMode := SourceGenMode.Manual(baseDirectory.value / "src" / "main" / "stGen"),
pomIncludeRepository := { _ => false },
scalacOptions ~= (_.filterNot(
Set(
// By necessity facades will have unused params
"-Wdead-code",
"-Wunused:imports",
"-Wunused:params",
"-Wunused:explicits",
"-Xlint:nullary-unit"
)
)),
)
.enablePlugins(ScalaJSBundlerPlugin, ScalablyTypedConverterGenSourcePlugin)
And the error once again:
sbt:scalajs-react-aria> info
sbt:scalajs-react-aria> compile
[info] compiling 2791 Scala sources to /Users/nkgm/Code/Scala/scalajs-react-aria/target/scala-2.13/classes ...
[error] /Users/nkgm/Code/Scala/scalajs-react-aria/src/main/stGen/stReactAria/react/mod/package.scala:1088:70: illegal cyclic reference involving type ReactNode
[error] type ReactFragment = js.Object | js.Iterable[stReactAria.react.mod.ReactNode]
[error] ^
[error] one error found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 23 s, completed Feb 17, 2022, 9:03:42 PM
Aha. That plugin apparently doesn't print the debug info. Anyway I think i see a difference, try to specify a react flavour. It'll do some type replacements which may be the reason it worked for me
It works with Flavour.ScalajsReact 👍
I'm building a rich scalajs-react facade around the generated ST typings, which is why I've been trying to keep things minimal and avoided using a flavour thus far. Using the ScalajsReact flavour, the generated typings now make use of the scalajs-react types which is great, but now all function props are defined in terms of Callback, which is not ideal when building an effect agnostic library. I should probably create a new issue as this is a completely separate point, but in a nutshell I think if it's not possible to generate fx-agnostic typings, it should at least be possible to opt out of Callback in favor of plain old Function props.
I cannot reproduce this anymore. tried with that react version, without flavour, and newest master. closing