compileSchemaValidators is imported from its own subpath
Detect
@rjsf/validator-ajv8/lib/compileSchemaValidatorsor@rjsf/validator-ata/lib/compileSchemaValidatorsin your precompile script.- Node throws
ERR_PACKAGE_PATH_NOT_EXPORTEDwhen the script runs.
Change
Each validator exports compileSchemaValidators from a subpath of its own:
-import compileSchemaValidators from '@rjsf/validator-ajv8/lib/compileSchemaValidators';
+import compileSchemaValidators from '@rjsf/validator-ajv8/compileSchemaValidators';
For @rjsf/validator-ata, use @rjsf/validator-ata/compileSchemaValidators. Other lib/ paths are gone too, see imports from a package's lib folder no longer resolve.
Verify
- The precompile script runs and writes the validator file as before.
Also read: