vyushin / mui-passfather Goto Github PK
View Code? Open in Web Editor NEWmui-passfather is material-ui text field component allowing generate strong password or random string.
License: MIT License
mui-passfather is material-ui text field component allowing generate strong password or random string.
License: MIT License
Thanks for making this open source!
Why would I be getting this error trying to load your main file in /node_modules?
importing and using the plugin exactly per demo:
import MuiPassfather from "mui-passfather";
causes:
ERROR in ./node_modules/mui-passfather/src/MuiPassfather.jsx 189:4
Module parse failed: Unexpected token (189:4)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| return (
> <TextField
| value={valueState}
| onChange={handleChange}
@ ./node_modules/mui-passfather/index.js 1:0-56 2:0-5:2 2:0-5:2
@ ./src/components/Form/PasswordComponent.js 6:0-43 61:38-51
@ ./src/components/DialogForm.js 16:0-57 198:40-57
@ ./src/components/Dashboard.js 14:0-38 246:116-126
@ ./src/PubReg.js 11:0-47 67:38-47
@ ./src/index.js 5:0-30 12:94-100
my webpack loader seems to be configured correctly:
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
resolve: {
extensions: [".js", ".jsx"],
},
loader: "babel-loader",
options: {
presets: ["@babel/preset-env", "@babel/preset-react"],
plugins: ["@babel/transform-runtime"],
},
},
I tried dowgrading to 1.1.1 to match the demo bin, but no luck.
What am I missing? Thank you in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.