anderspitman / react_rust_wasm Goto Github PK
View Code? Open in Web Editor NEWCode for my blog post about getting started with React and Rust/wasm
Code for my blog post about getting started with React and Rust/wasm
Hi there. I am trying the tutorial from your react_rust_wasm tutorial. When I tried to run your tutorial verbatim, I got errors running npx webpack
.
However, once I copied your exact package.json
from this repo and ran npm i
on that, npx webpack
ran fine.
So my suggestion is, update the blog post to specify what versions to install with npm install
, or tell readers to just use your exact package.json
file.
Thanks!
I have been following your tutorial but have been unable to get past the build-wasm stage
There appears to be an issue with proc_macro_span
MacOS: 10.13.3
cargo build --target wasm32-unknown-unknown
Downloading wasm-bindgen v0.2.11
Downloading wasm-bindgen-macro v0.2.11
Downloading wasm-bindgen-backend v0.2.11
Downloading proc-macro2 v0.4.6
Downloading syn v0.14.2
Downloading serde_json v1.0.19
Downloading dtoa v0.4.2
Downloading serde v1.0.66
Downloading itoa v0.4.1
Downloading serde_derive v1.0.66
Compiling proc-macro2 v0.4.6
error[E0658]: use of unstable library feature 'proc_macro_span' (see issue #38356)oc-macro2
--> /Users/edwilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:284:13
|
284 | Nightly(proc_macro::SourceFile, FileName),
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(proc_macro_span)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'proc_macro_span' (see issue #38356)
--> /Users/edwilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:289:20
|
289 | fn nightly(sf: proc_macro::SourceFile) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(proc_macro_span)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'proc_macro_span' (see issue #38356)
--> /Users/edwilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:290:45
|
290 | let filename = stable::file_name(sf.path().to_string());
| ^^^^
|
= help: add #![feature(proc_macro_span)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'proc_macro_span' (see issue #38356)
--> /Users/edwilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:304:44
|
304 | SourceFile::Nightly(a, _) => a.is_real(),
| ^^^^^^^
|
= help: add #![feature(proc_macro_span)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'proc_macro_span' (see issue #38356)
--> /Users/edwilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:347:27
|
347 | Span::Nightly(proc_macro::Span::def_site())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(proc_macro_span)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'proc_macro_span' (see issue #38356)
--> /Users/edwilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:355:69
|
355 | (Span::Nightly(a), Span::Nightly(b)) => Span::Nightly(a.resolved_at(b)),
| ^^^^^^^^^^^
|
= help: add #![feature(proc_macro_span)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'proc_macro_span' (see issue #38356)
--> /Users/edwilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:363:69
|
363 | (Span::Nightly(a), Span::Nightly(b)) => Span::Nightly(a.located_at(b)),
| ^^^^^^^^^^
|
= help: add #![feature(proc_macro_span)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'proc_macro_span' (see issue #38356)
--> /Users/edwilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:424:55
|
424 | (Span::Nightly(a), Span::Nightly(b)) => a.eq(b),
| ^^
|
= help: add #![feature(proc_macro_span)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'proc_macro_raw_ident' (see issue #38356)
--> /Users/edwilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:475:48
|
475 | Span::Nightly(s) => Ident::Nightly(proc_macro::Ident::new_raw(string, s)),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(proc_macro_raw_ident)] to the crate attributes to enable
error: aborting due to 9 previous errors
For more information about this error, try `rustc --explain E0658`.
error: Could not compile `proc-macro2`.
How can I run a web-server from the dist directory?
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.