FHIR Chat · node warning when running sushi · shorthand

Stream: shorthand

Topic: node warning when running sushi


view this post on Zulip Bob Milius (Aug 12 2020 at 21:46):

I'm getting a warning from node while running sushi:
Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency.
It seems to build okay, but the warnings are annoying.
I suspect it's something to do with my install, but can't figure it out.
I tried it with the tutorial files and see this:

FishExampleComplete $ sushi .
info  Running SUSHI v0.15.1 (implements FHIR Shorthand specification v0.13.x)
info  No output path specified. Output to build
info  Using configuration file: /Users/bmilius/Documents/src/fsh/test/fsh-tutorial-master/FishExampleComplete/config.yaml
info  Checking local cache for hl7.fhir.r4.core#4.0.1...
info  Found hl7.fhir.r4.core#4.0.1 in local cache.
info  Loaded package hl7.fhir.r4.core#4.0.1
info  Importing FSH text...
info  Preprocessed 2 documents with 3 aliases.
info  Imported 4 definitions and 1 instances.
(node:79325) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:79325) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency
info  Converting FSH to FHIR resources...
info  Converted 3 FHIR StructureDefinitions.
info  Converted 1 FHIR ValueSets.
info  Converted 1 FHIR instances.
info  Exporting FHIR resources as JSON...
info  Exported 5 FHIR resources as JSON.
info  Assembling Implementation Guide sources...
info  Copied build/input/pagecontent/index.md
info  Generated ig.ini.
info  Generated package-list.json
info  Generated ImplementationGuide-fish.json
info  Assembled Implementation Guide sources; ready for IG Publisher.

╔════════════════════════ SUSHI RESULTS ══════════════════════════╗
║ ╭──────────┬────────────┬───────────┬─────────────┬───────────╮ ║
║ │ Profiles │ Extensions │ ValueSets │ CodeSystems │ Instances │ ║
║ ├──────────┼────────────┼───────────┼─────────────┼───────────┤ ║
║ │    2     │     1      │     1     │      0      │     1     │ ║
║ ╰──────────┴────────────┴───────────┴─────────────┴───────────╯ ║
║                                                                 ║
║ See SUSHI-GENERATED-FILES.md for details on generated IG files. ║
╠═════════════════════════════════════════════════════════════════╣
║ Well hooked and landed!                0 Errors      0 Warnings ║
╚═════════════════════════════════════════════════════════════════╝
FishExampleComplete $

versions are

$ sushi --version
SUSHI v0.15.1 (implements FHIR Shorthand specification v0.13.x)
$ node --version
v14.8.0
$ npm --version
6.14.7

view this post on Zulip Nick Freiter (Aug 13 2020 at 12:12):

We've had some other users note this error as well, and we are tracking it here: https://github.com/FHIR/sushi/issues/551. It seems to be an issue with ANTLR, the library we use to define our grammar. We are planning to upgrade once a new version of ANTLR is released.

view this post on Zulip Bob Milius (Aug 13 2020 at 13:56):

thanks! I have to remember to look at the github issues before I post here :)


Last updated: Apr 12 2022 at 19:14 UTC