Skip to main content
Version: v2.4.4

Parser Errors and Warnings

When reVISit parses your study config file, it checks for issues that could prevent the study from running correctly. Errors will stop the parser and must be fixed before you can run your study. Warnings indicate potential problems like unused components or configuration mistakes, but they won't prevent the study from running. Errors are expanded and warnings are collapsed by default.

List of parser errors and warnings

Errors​

CategoryMessageAction
Invalid ConfigThere was an issue validating your config fileFix the errors in your file or make sure the global config references the right file path
Invalid Library ConfigLibrary config is not validFix the errors in the library config
Undefined LibraryLibrary not found in imported librariesCheck the library name and make sure the library is imported correctly
Undefined LibraryCould not find libraryMake sure the library is in the correct location
Undefined Base ComponentBase component is not defined in baseComponents objectAdd the base component to the baseComponents object
Undefined Base ComponentBase component is not defined in baseComponents object in libraryAdd the base component to the baseComponents object
Undefined ComponentComponent is not defined in components objectAdd the component to the components object
Undefined ComponentUnresolved pathMake sure the React component exists under src/public/ and that its path is relative to src/public/, not public/
Sequence ValidationComponent is a base component and cannot be used in the sequenceRemove the base component from the sequence
Sequence ValidationSequence not found in libraryCheck the sequence name
Sequence ValidationConditional URL parameter assignment cannot be combined with random or latinSquare sequence orderingUse fixed ordering when using conditional blocks, or remove conditional blocks
Skip ValidationSkip target does not occur after the skip block it is used inAdd the target to the sequence after the skip block

Unresolved React component paths​

ReVISit verifies the path of every react-component, including React components defined in baseComponents or inherited by another component. For example, this configuration expects the file at src/public/my-study/assets/Chart.tsx:

public/my-study/config.json
{
"type": "react-component",
"path": "my-study/assets/Chart.tsx"
}

If the file cannot be found, the parser reports an Unresolved path error before the study starts. React component files belong under src/public/; most non-React assets, such as images and videos, belong under public/.

Warnings​

CategoryMessageAction
Sequence ValidationSequence has an empty components arrayRemove empty components block
Unused ComponentComponent is defined in components object but not used deterministically in the sequenceRemove the component from the components object or add it to the sequence
Disabled SidebarComponent uses sidebar locations but sidebar is disabledEnable the sidebar or move the location to belowStimulus or aboveStimulus
Default Contact EmailThe contact email is set to the default value contact@revisit.dev. Please update it to your own email addressUpdate the contactEmail field in uiConfig to your own email address