Skip to content

FAQ ​

Which scaffold should I choose? ​

There is one current scaffold: a generic button experiment. Add custom components, product data helpers, or API calls inside the generated project when the experiment needs them.

Why does pnpm start 0 watch v1? ​

The command argument is a zero-based index. 0 maps to v1, 1 maps to v2, and so on.

Does Preact need to exist on the target page? ​

No. Each IIFE bundle includes Preact and imported component styles.

Where should selectors live? ​

Keep them in src/config.js as selectors.primary and ordered selectors.fallbacks. Pass both to mountExperiment().

Why did setupTracking() do nothing? ​

It returns silently when options.selector does not match inside the container. Call it after render() and verify the selector. The default is 'a'; the generated button scaffold passes 'button'.

Can I add E2E tests later? ​

Yes. Run pnpm add-e2e from a current generated project, or pnpm exec exp-add-e2e after upgrading an older project to the current package.

What AI support can I add? ​

New projects include tracked AGENTS.md and CLAUDE.md files. They point coding tools to the version-matched documentation installed with the framework. Older projects can add them with pnpm exec exp-init-agents and pnpm exec exp-init-claude. See AI Project Support.

What does includeEmergencyBrake do? ​

The build includes the setting in the bundle. When runtime.includeEmergencyBrake is true, runScript() checks the Adobe Target emergency-brake configuration before running the experiment.

Why does pnpm live fail before opening a browser? ​

Common causes are a missing Chromium install, an invalid targetUrl, no matching selector, or a variation index that does not exist. Run pnpm dlx playwright install chromium for the browser.

Can I use JavaScript template literals? ​

Yes. The generated Vite build follows normal JavaScript handling for template literals.

Where is Stylelint? ​

It is not generated. Biome checks JavaScript, JSX, and JSON; Sass compiles SCSS during the build. Follow the SCSS Modules conventions.

See Error Reference for command-specific failures.

Internal tool - Samsung / Sogody experimentation team

Help improve the frameworkShare an idea or friction you encountered.Share framework feedback(opens in a new tab)