@qualtrics/plugin-ui-react v1.5.2
Qualtrics Plugin React UI Component Library
Overview
This library contains components that are useful when developing XMT plugins, as well as general components for developing for Qualtrics using React.
Installation
Node JS v10.x or greater recommended (recommended to use nvm
for versioning).
Install dependencies:
$ npm i
Development
To run the dev server and open a browser dev tab, run:
$ npm start
In your project (running with webpack-dev-server
):
$ npm link /path/to/this/repo/qualtrics-plugin-ui-react
If you get an error about incorrect usage of Hooks in the browser dev console, you are most likely running two instances of react. To prevent this from happening, in your app add the following to the resolve
option in webpack.config.js
:
resolve: {
alias: {
'react': path.resolve(__dirname, './node_modules/react'),
'react-dom': path.resolve(__dirname, './node_modules/react-dom'),
}
}
This forces the locally linked component library to use your project's instance of React.
Production
To build, run:
$ npm run build
The production assets will be added to the /dist
directory.
Troubleshooting
If you get errors from node-sass
, node-gyp
, or sass-related dependencies run:
$ rm package-lock.json && rm yarn.lock && rm -rf node_modules && npm i
If the problems persist, run:
$ npm rebuild
6 months ago
10 months ago
6 months ago
10 months ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago