Skip to main content
Version: Current (v7.0.0-beta.3)

compileSchemaValidators is imported from its own subpath

Detect​

  • @rjsf/validator-ajv8/lib/compileSchemaValidators or @rjsf/validator-ata/lib/compileSchemaValidators in your precompile script.
  • Node throws ERR_PACKAGE_PATH_NOT_EXPORTED when 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: