Registry /
web-framework / babel-plugin-zova-behavior
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
default
✓ import babelPluginZovaBehavior from 'babel-plugin-zova-behavior'
✗ const babelPluginZovaBehavior = require('babel-plugin-zova-behavior')
ESM-only since v1.0
babelPluginZovaBehavior
✓ import { babelPluginZovaBehavior } from 'babel-plugin-zova-behavior'
✗ import babelPluginZovaBehavior from 'babel-plugin-zova-behavior'
Named export also available
default (in babel.config.js)
✓ module.exports = { plugins: ['babel-plugin-zova-behavior'] }
✗ module.exports = { plugins: ['zova-behavior'] }
Use full package name
Shows how to enable the plugin in Babel configuration and use the @Behavior decorator.
// babel.config.js
module.exports = {
plugins: ['babel-plugin-zova-behavior']
};
// In your source file
import { Behavior } from 'zova';
@Behavior()
export class MyBehavior {
created() {
console.log('Behavior created');
}
}
Errors
Common errors & fixes
Error: Cannot find module 'babel-plugin-zova-behavior'
Package not installed or not in node_modules.
fixRun npm install babel-plugin-zova-behavior --save-dev
TypeError: this[Symbol.for('zova:behavior')] is not a function
Decorator applied to unsupported class type.
fixEnsure decorator is only applied to classes extending predefined Zova base classes
Audit
Dependencies
@babel/corerequiredpeer dependency for Babel plugin