Jspsyc.js umd file version #3578
Replies: 1 comment
-
Hello @shreya2615 The issue happens because recent versions of jsPsych no longer provide a prebuilt UMD bundle (like How to Fix1. Use jsPsych CDN (UMD build): <script src="https://unpkg.com/[email protected]/dist/jspsych.js"></script>
<script src="https://unpkg.com/[email protected]/dist/plugin-html-keyboard-response.js"></script> Replace 2. If using npm + bundlers (Webpack, Vite, etc.): import jsPsych from "jspsych";
import htmlKeyboardResponse from "@jspsych/plugin-html-keyboard-response"; This is the recommended way for modern setups. 3. Firebase Hosting Note: References:In short:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I am very new to this world and am trying to run a jsypsych experiment on github, I recently switched to using firebase to log data, after the switch my experiment stopped working online, I used AI to figure out what the issue was and I was told that it was because I needed to update my jspsych.js file in my experiment folder to a file that is UMD, I have tried looking for this file everywhere and have no been able to find it. If anyone would be able to give me some assistance on this I would appreciate any insight or help on the issue!
Beta Was this translation helpful? Give feedback.
All reactions