Skip to content

fix: update devDependencies versions #211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,28 @@ Rust-generated WebAssembly and using them to create a Website.
npm init wasm-app
```

**Note**
You may face error like below:
```shell
(node:257464) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
ℹ 「wds」: Project is running at http://localhost:8080/
ℹ 「wds」: webpack output is served from /
node:internal/crypto/hash:69
this[kHandle] = new _Hash(algorithm, xofLen);
...
```
That error because of `devDependencies` versions conflicted with you Node version.

You can simply update `devDependencies` versions by below commands:
```shell
npm i -g npm-check-updates
ncu -u
npm install
```
Reference: https://stackoverflow.com/a/16074029/8093348


## 🔋 Batteries Included

- `.gitignore`: ignores `node_modules`
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
},
"homepage": "https://github.com/rustwasm/create-wasm-app#readme",
"devDependencies": {
"copy-webpack-plugin": "^11.0.0",
"hello-wasm-pack": "^0.1.0",
"webpack": "^4.29.3",
"webpack-cli": "^3.1.0",
"webpack-dev-server": "^3.1.5",
"copy-webpack-plugin": "^5.0.0"
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1"
}
}
}
9 changes: 8 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ module.exports = {
},
mode: "development",
plugins: [
new CopyWebpackPlugin(['index.html'])
new CopyWebpackPlugin({
patterns: [
{ from: 'index.html' }
]
})
],
experiments: {
asyncWebAssembly: true,
}
};