Skip to content

How to get the plugin template to work with npm/parcel? #3046

Answered by SHogenboom
SHogenboom asked this question in Q&A
Discussion options

You must be logged in to vote

With a fresh mind I decided to look at the code of existing plugins again for clues. Not sure why I didn’t register before… but the code imports ParameterType from jspych. I thus made the following changes which appears to have solved the issue:

import { jsPsychModule, ParameterType } from "jspsych”;

and: (removing the jspsych. prefix)

type: ParameterType.STRING,

No idea if this is a hack, THE solution, and/or perhaps worth documenting in the development section?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jodeleeuw
Comment options

Answer selected by jodeleeuw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants