rsksmart / utils Goto Github PK
View Code? Open in Web Editor NEWRSK Utils to convert keys from BTC to RSK
RSK Utils to convert keys from BTC to RSK
NPM version 7.6.1
I get this error when trying to run webpack
.
[webpack-cli] Error: Compiling RuleSet failed: Exclamation mark separated loader lists has been removed in favor of the 'use' property with arrays (at ruleSet[1].rules[1].loader: style!css)
at RuleSetCompiler.error (/usr/local/lib/node_modules/webpack/lib/rules/RuleSetCompiler.js:373:10)
at ruleSetCompiler.hooks.rule.tap (/usr/local/lib/node_modules/webpack/lib/rules/UseEffectRulePlugin.js:152:29)
at Hook.eval [as call] (eval at create (/usr/local/lib/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:45:1)
at RuleSetCompiler.compileRule (/usr/local/lib/node_modules/webpack/lib/rules/RuleSetCompiler.js:177:19)
at rules.map (/usr/local/lib/node_modules/webpack/lib/rules/RuleSetCompiler.js:154:9)
at Array.map (<anonymous>)
at RuleSetCompiler.compileRules (/usr/local/lib/node_modules/webpack/lib/rules/RuleSetCompiler.js:153:16)
at RuleSetCompiler.compileRule (/usr/local/lib/node_modules/webpack/lib/rules/RuleSetCompiler.js:184:30)
at rules.map (/usr/local/lib/node_modules/webpack/lib/rules/RuleSetCompiler.js:154:9)
at Array.map (<anonymous>)
at RuleSetCompiler.compileRules (/usr/local/lib/node_modules/webpack/lib/rules/RuleSetCompiler.js:153:16)
at RuleSetCompiler.compile (/usr/local/lib/node_modules/webpack/lib/rules/RuleSetCompiler.js:68:22)
at new NormalModuleFactory (/usr/local/lib/node_modules/webpack/lib/NormalModuleFactory.js:235:34)
at Compiler.createNormalModuleFactory (/usr/local/lib/node_modules/webpack/lib/Compiler.js:998:31)
at Compiler.newCompilationParams (/usr/local/lib/node_modules/webpack/lib/Compiler.js:1018:30)
at Compiler.compile (/usr/local/lib/node_modules/webpack/lib/Compiler.js:1029:23)
Hei team!
Would love to see this small module working but i am always getting errors after running webpack
and since i dont know webpack well i have no good idea how to solve this.
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
- webpack-cli (https://github.com/webpack/webpack-cli)
The original webpack full-featured CLI.
We will use "npm" to install the CLI via "npm install -D".
Do you want to install 'webpack-cli' (yes/no): yes
Installing 'webpack-cli' (running 'npm install -D webpack-cli')...
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN [email protected] requires a peer of webpack@^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
+ [email protected]
added 177 packages from 120 contributors and audited 1778 packages in 6.259s
3 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
{ Error: Cannot find module 'webpack-cli'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at runCommand.then (/usr/local/lib/node_modules/webpack/bin/webpack.js:143:5)
at process._tickCallback (internal/process/next_tick.js:68:7) code: 'MODULE_NOT_FOUND' }
Would be very great to get some help!
EDIT:
After installing webpack-cli
also global i am getting this error:
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.module has an unknown property 'loaders'. These properties are valid:
object { defaultRules?, exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, noParse?, rules?, strictExportPresence?, strictThisContextOnImports?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp? }
-> Options affecting the normal modules (`NormalModuleFactory`).
tried this on my macbook Air M1.
When clicking the buttons, nothing happens. The buttons have no function.
I also found that index.html is trying to load js files in line 19&21 which aren't located there:
<script src="lib/rsk-conversion-utils.js"></script>
<script src="lib/rsk-helper.js"></script>
even after moving the js files in the lib folder, it still throws an "require is not defined" error
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.