typewind
typewind copied to clipboard
Possible issue with latest next version and typewind_swc.wasm
Hey folks,
Following the installation guide at: https://typewind.dev/docs/installation
I came across the folllowing issue when trying to load a page: (see below for my configs)
Have i missed a step or made a wrong configuration? Please let me know.
Thanks!
---------------------------
Panic: panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-5.0.2/src/plugin.rs:169:14:
failed to invoke plugin: failed to invoke plugin on 'Some("/home/workspace/intro-site/node_modules/next/dist/client/components/error-boundary.js")'
Caused by:
0: failed to invoke `/home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm` as js transform plugin at /home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm
1: failed to run Wasm plugin transform. Please ensure the version of `swc_core` used by the plugin is compatible with the host runtime. See the documentation for compatibility information. If you are an author of the plugin, please update `swc_core` to the compatible version.
Note that if you want to use the os features like filesystem, you need to use `wasi`. Wasm itself does not have concept of filesystem.
https://swc.rs/docs/plugin/selecting-swc-core
See https://plugins.swc.rs/versions/from-plugin-runner/4.0.0 for the list of the compatible versions.
Build info:
Date: 2024-12-10
Timestamp: 2024-12-10T12:15:58.989047756Z
Version info:
swc_plugin_runner: 4.0.0
Dependencies: anyhow 1.0.94,codspeed-criterion-compat 2.7.2,criterion 0.5.1,enumset 1.1.5,futures 0.3.31,once_cell 1.20.2,parking_lot 0.12.3,serde 1.0.215,serde_json 1.0.133,swc_atoms 2.0.0,swc_common 4.0.1,swc_css_ast 4.0.1,swc_css_parser 4.0.0,swc_ecma_ast 4.0.1,swc_ecma_loader 4.0.0,swc_ecma_parser 5.0.0,swc_ecma_visit 4.0.1,swc_malloc 1.0.0,swc_plugin_proxy 4.0.0,testing 4.0.0,tokio 1.42.0,tracing 0.1.41,vergen 9.0.2,virtual-fs 0.16.0,wasmer 4.3.7,wasmer-cache 4.3.7,wasmer-compiler-cranelift 4.3.7,wasmer-wasix 0.27.0
2: RuntimeError: out of bounds memory access
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97e88)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97ec9)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x65904)
at rkyv::impls::alloc::boxed::<impl rkyv::Deserialize<alloc::boxed::Box<T>,D> for rkyv::boxed::ArchivedBox<<T as rkyv::ArchiveUnsized>::Archived>>::deserialize::hf8413527b975ae00 (typewind_swc.wasm[549]:0x7a2ed)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x66aff)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h1eee8166c4249036 (typewind_swc.wasm[151]:0x19967)
at __transform_plugin_process_impl (typewind_swc.wasm[150]:0x16b6f)
at __transform_plugin_process_impl.command_export (typewind_swc.wasm[1214]:0x176e7c)
Stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: <unknown>
24: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
25: worker
26: <unknown>
27: <unknown>
Backtrace: 0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
24: worker
25: <unknown>
26: <unknown>
---------------------------
Panic: panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-5.0.2/src/plugin.rs:169:14:
failed to invoke plugin: failed to invoke plugin on 'Some("/home/workspace/intro-site/node_modules/next/dist/shared/lib/segment.js")'
Caused by:
0: failed to invoke `/home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm` as js transform plugin at /home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm
1: failed to run Wasm plugin transform. Please ensure the version of `swc_core` used by the plugin is compatible with the host runtime. See the documentation for compatibility information. If you are an author of the plugin, please update `swc_core` to the compatible version.
Note that if you want to use the os features like filesystem, you need to use `wasi`. Wasm itself does not have concept of filesystem.
https://swc.rs/docs/plugin/selecting-swc-core
See https://plugins.swc.rs/versions/from-plugin-runner/4.0.0 for the list of the compatible versions.
Build info:
Date: 2024-12-10
Timestamp: 2024-12-10T12:15:58.989047756Z
Version info:
swc_plugin_runner: 4.0.0
Dependencies: anyhow 1.0.94,codspeed-criterion-compat 2.7.2,criterion 0.5.1,enumset 1.1.5,futures 0.3.31,once_cell 1.20.2,parking_lot 0.12.3,serde 1.0.215,serde_json 1.0.133,swc_atoms 2.0.0,swc_common 4.0.1,swc_css_ast 4.0.1,swc_css_parser 4.0.0,swc_ecma_ast 4.0.1,swc_ecma_loader 4.0.0,swc_ecma_parser 5.0.0,swc_ecma_visit 4.0.1,swc_malloc 1.0.0,swc_plugin_proxy 4.0.0,testing 4.0.0,tokio 1.42.0,tracing 0.1.41,vergen 9.0.2,virtual-fs 0.16.0,wasmer 4.3.7,wasmer-cache 4.3.7,wasmer-compiler-cranelift 4.3.7,wasmer-wasix 0.27.0
2: RuntimeError: unreachable
at rust_panic (typewind_swc.wasm[390]:0x40888)
at std::panicking::rust_panic_with_hook::h50e657195af0239c (typewind_swc.wasm[284]:0x33edc)
at std::panicking::begin_panic_handler::{{closure}}::h0187e6969a85aab0 (typewind_swc.wasm[397]:0x40d87)
at std::sys_common::backtrace::__rust_end_short_backtrace::h575fb82445d56667 (typewind_swc.wasm[396]:0x40cee)
at rust_begin_unwind (typewind_swc.wasm[208]:0x271c5)
at core::panicking::panic_fmt::ha6764f2272b7fb95 (typewind_swc.wasm[98]:0xeb5c)
at core::result::unwrap_failed::had3752ac9f022e32 (typewind_swc.wasm[139]:0x1238a)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ad5a)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97ec9)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97ec9)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x65904)
at rkyv::impls::alloc::boxed::<impl rkyv::Deserialize<alloc::boxed::Box<T>,D> for rkyv::boxed::ArchivedBox<<T as rkyv::ArchiveUnsized>::Archived>>::deserialize::hf8413527b975ae00 (typewind_swc.wasm[549]:0x7a2ed)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x66aff)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h1eee8166c4249036 (typewind_swc.wasm[151]:0x19967)
at __transform_plugin_process_impl (typewind_swc.wasm[150]:0x16b6f)
at __transform_plugin_process_impl.command_export (typewind_swc.wasm[1214]:0x176e7c)
Stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: <unknown>
24: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
25: worker
26: <unknown>
27: <unknown>
Backtrace: 0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
24: worker
25: <unknown>
26: <unknown>
---------------------------
Panic: panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-5.0.2/src/plugin.rs:169:14:
failed to invoke plugin: failed to invoke plugin on 'Some("/home/workspace/intro-site/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js")'
Caused by:
0: failed to invoke `/home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm` as js transform plugin at /home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm
1: failed to run Wasm plugin transform. Please ensure the version of `swc_core` used by the plugin is compatible with the host runtime. See the documentation for compatibility information. If you are an author of the plugin, please update `swc_core` to the compatible version.
Note that if you want to use the os features like filesystem, you need to use `wasi`. Wasm itself does not have concept of filesystem.
https://swc.rs/docs/plugin/selecting-swc-core
See https://plugins.swc.rs/versions/from-plugin-runner/4.0.0 for the list of the compatible versions.
Build info:
Date: 2024-12-10
Timestamp: 2024-12-10T12:15:58.989047756Z
Version info:
swc_plugin_runner: 4.0.0
Dependencies: anyhow 1.0.94,codspeed-criterion-compat 2.7.2,criterion 0.5.1,enumset 1.1.5,futures 0.3.31,once_cell 1.20.2,parking_lot 0.12.3,serde 1.0.215,serde_json 1.0.133,swc_atoms 2.0.0,swc_common 4.0.1,swc_css_ast 4.0.1,swc_css_parser 4.0.0,swc_ecma_ast 4.0.1,swc_ecma_loader 4.0.0,swc_ecma_parser 5.0.0,swc_ecma_visit 4.0.1,swc_malloc 1.0.0,swc_plugin_proxy 4.0.0,testing 4.0.0,tokio 1.42.0,tracing 0.1.41,vergen 9.0.2,virtual-fs 0.16.0,wasmer 4.3.7,wasmer-cache 4.3.7,wasmer-compiler-cranelift 4.3.7,wasmer-wasix 0.27.0
2: RuntimeError: out of bounds memory access
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97e88)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97ec9)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x65904)
at rkyv::impls::alloc::boxed::<impl rkyv::Deserialize<alloc::boxed::Box<T>,D> for rkyv::boxed::ArchivedBox<<T as rkyv::ArchiveUnsized>::Archived>>::deserialize::hf8413527b975ae00 (typewind_swc.wasm[549]:0x7a2ed)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x66aff)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h1eee8166c4249036 (typewind_swc.wasm[151]:0x19967)
at __transform_plugin_process_impl (typewind_swc.wasm[150]:0x16b6f)
at __transform_plugin_process_impl.command_export (typewind_swc.wasm[1214]:0x176e7c)
Stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: <unknown>
24: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
25: worker
26: <unknown>
27: <unknown>
Backtrace: 0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
24: worker
25: <unknown>
26: <unknown>
---------------------------
Panic: panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-5.0.2/src/plugin.rs:169:14:
failed to invoke plugin: failed to invoke plugin on 'Some("/home/workspace/intro-site/node_modules/next/dist/shared/lib/segment.js")'
Caused by:
0: failed to invoke `/home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm` as js transform plugin at /home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm
1: failed to run Wasm plugin transform. Please ensure the version of `swc_core` used by the plugin is compatible with the host runtime. See the documentation for compatibility information. If you are an author of the plugin, please update `swc_core` to the compatible version.
Note that if you want to use the os features like filesystem, you need to use `wasi`. Wasm itself does not have concept of filesystem.
https://swc.rs/docs/plugin/selecting-swc-core
See https://plugins.swc.rs/versions/from-plugin-runner/4.0.0 for the list of the compatible versions.
Build info:
Date: 2024-12-10
Timestamp: 2024-12-10T12:15:58.989047756Z
Version info:
swc_plugin_runner: 4.0.0
Dependencies: anyhow 1.0.94,codspeed-criterion-compat 2.7.2,criterion 0.5.1,enumset 1.1.5,futures 0.3.31,once_cell 1.20.2,parking_lot 0.12.3,serde 1.0.215,serde_json 1.0.133,swc_atoms 2.0.0,swc_common 4.0.1,swc_css_ast 4.0.1,swc_css_parser 4.0.0,swc_ecma_ast 4.0.1,swc_ecma_loader 4.0.0,swc_ecma_parser 5.0.0,swc_ecma_visit 4.0.1,swc_malloc 1.0.0,swc_plugin_proxy 4.0.0,testing 4.0.0,tokio 1.42.0,tracing 0.1.41,vergen 9.0.2,virtual-fs 0.16.0,wasmer 4.3.7,wasmer-cache 4.3.7,wasmer-compiler-cranelift 4.3.7,wasmer-wasix 0.27.0
2: RuntimeError: unreachable
at rust_panic (typewind_swc.wasm[390]:0x40888)
at std::panicking::rust_panic_with_hook::h50e657195af0239c (typewind_swc.wasm[284]:0x33edc)
at std::panicking::begin_panic_handler::{{closure}}::h0187e6969a85aab0 (typewind_swc.wasm[397]:0x40d87)
at std::sys_common::backtrace::__rust_end_short_backtrace::h575fb82445d56667 (typewind_swc.wasm[396]:0x40cee)
at rust_begin_unwind (typewind_swc.wasm[208]:0x271c5)
at core::panicking::panic_fmt::ha6764f2272b7fb95 (typewind_swc.wasm[98]:0xeb5c)
at core::result::unwrap_failed::had3752ac9f022e32 (typewind_swc.wasm[139]:0x1238a)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ad5a)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97ec9)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97ec9)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x65904)
at rkyv::impls::alloc::boxed::<impl rkyv::Deserialize<alloc::boxed::Box<T>,D> for rkyv::boxed::ArchivedBox<<T as rkyv::ArchiveUnsized>::Archived>>::deserialize::hf8413527b975ae00 (typewind_swc.wasm[549]:0x7a2ed)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x66aff)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h1eee8166c4249036 (typewind_swc.wasm[151]:0x19967)
at __transform_plugin_process_impl (typewind_swc.wasm[150]:0x16b6f)
at __transform_plugin_process_impl.command_export (typewind_swc.wasm[1214]:0x176e7c)
Stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: <unknown>
24: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
25: worker
26: <unknown>
27: <unknown>
Backtrace: 0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
24: worker
25: <unknown>
26: <unknown>
---------------------------
Panic: panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-5.0.2/src/plugin.rs:169:14:
failed to invoke plugin: failed to invoke plugin on 'Some("/home/workspace/intro-site/node_modules/next/dist/pages/_app.js")'
Caused by:
0: failed to invoke `/home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm` as js transform plugin at /home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm
1: failed to run Wasm plugin transform. Please ensure the version of `swc_core` used by the plugin is compatible with the host runtime. See the documentation for compatibility information. If you are an author of the plugin, please update `swc_core` to the compatible version.
Note that if you want to use the os features like filesystem, you need to use `wasi`. Wasm itself does not have concept of filesystem.
https://swc.rs/docs/plugin/selecting-swc-core
See https://plugins.swc.rs/versions/from-plugin-runner/4.0.0 for the list of the compatible versions.
Build info:
Date: 2024-12-10
Timestamp: 2024-12-10T12:15:58.989047756Z
Version info:
swc_plugin_runner: 4.0.0
Dependencies: anyhow 1.0.94,codspeed-criterion-compat 2.7.2,criterion 0.5.1,enumset 1.1.5,futures 0.3.31,once_cell 1.20.2,parking_lot 0.12.3,serde 1.0.215,serde_json 1.0.133,swc_atoms 2.0.0,swc_common 4.0.1,swc_css_ast 4.0.1,swc_css_parser 4.0.0,swc_ecma_ast 4.0.1,swc_ecma_loader 4.0.0,swc_ecma_parser 5.0.0,swc_ecma_visit 4.0.1,swc_malloc 1.0.0,swc_plugin_proxy 4.0.0,testing 4.0.0,tokio 1.42.0,tracing 0.1.41,vergen 9.0.2,virtual-fs 0.16.0,wasmer 4.3.7,wasmer-cache 4.3.7,wasmer-compiler-cranelift 4.3.7,wasmer-wasix 0.27.0
2: RuntimeError: out of bounds memory access
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97ec4)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97ec9)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x65904)
at rkyv::impls::alloc::boxed::<impl rkyv::Deserialize<alloc::boxed::Box<T>,D> for rkyv::boxed::ArchivedBox<<T as rkyv::ArchiveUnsized>::Archived>>::deserialize::hf8413527b975ae00 (typewind_swc.wasm[549]:0x7a2ed)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x66aff)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h1eee8166c4249036 (typewind_swc.wasm[151]:0x19967)
at __transform_plugin_process_impl (typewind_swc.wasm[150]:0x16b6f)
at __transform_plugin_process_impl.command_export (typewind_swc.wasm[1214]:0x176e7c)
Stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: <unknown>
24: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
25: worker
26: <unknown>
27: <unknown>
Backtrace: 0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
24: worker
25: <unknown>
26: <unknown>
---------------------------
Panic: panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-5.0.2/src/plugin.rs:169:14:
failed to invoke plugin: failed to invoke plugin on 'Some("/home/workspace/intro-site/node_modules/next/dist/pages/_app.js")'
Caused by:
0: failed to invoke `/home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm` as js transform plugin at /home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm
1: failed to run Wasm plugin transform. Please ensure the version of `swc_core` used by the plugin is compatible with the host runtime. See the documentation for compatibility information. If you are an author of the plugin, please update `swc_core` to the compatible version.
Note that if you want to use the os features like filesystem, you need to use `wasi`. Wasm itself does not have concept of filesystem.
https://swc.rs/docs/plugin/selecting-swc-core
See https://plugins.swc.rs/versions/from-plugin-runner/4.0.0 for the list of the compatible versions.
Build info:
Date: 2024-12-10
Timestamp: 2024-12-10T12:15:58.989047756Z
Version info:
swc_plugin_runner: 4.0.0
Dependencies: anyhow 1.0.94,codspeed-criterion-compat 2.7.2,criterion 0.5.1,enumset 1.1.5,futures 0.3.31,once_cell 1.20.2,parking_lot 0.12.3,serde 1.0.215,serde_json 1.0.133,swc_atoms 2.0.0,swc_common 4.0.1,swc_css_ast 4.0.1,swc_css_parser 4.0.0,swc_ecma_ast 4.0.1,swc_ecma_loader 4.0.0,swc_ecma_parser 5.0.0,swc_ecma_visit 4.0.1,swc_malloc 1.0.0,swc_plugin_proxy 4.0.0,testing 4.0.0,tokio 1.42.0,tracing 0.1.41,vergen 9.0.2,virtual-fs 0.16.0,wasmer 4.3.7,wasmer-cache 4.3.7,wasmer-compiler-cranelift 4.3.7,wasmer-wasix 0.27.0
2: RuntimeError: out of bounds memory access
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97ec4)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97ec9)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x65904)
at rkyv::impls::alloc::boxed::<impl rkyv::Deserialize<alloc::boxed::Box<T>,D> for rkyv::boxed::ArchivedBox<<T as rkyv::ArchiveUnsized>::Archived>>::deserialize::hf8413527b975ae00 (typewind_swc.wasm[549]:0x7a2ed)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x66aff)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h1eee8166c4249036 (typewind_swc.wasm[151]:0x19967)
at __transform_plugin_process_impl (typewind_swc.wasm[150]:0x16b6f)
at __transform_plugin_process_impl.command_export (typewind_swc.wasm[1214]:0x176e7c)
Stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: <unknown>
24: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
25: worker
26: <unknown>
27: <unknown>
Backtrace: 0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
24: worker
25: <unknown>
26: <unknown>
---------------------------
Panic: panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-5.0.2/src/plugin.rs:169:14:
failed to invoke plugin: failed to invoke plugin on 'Some("/home/workspace/intro-site/node_modules/next/dist/client/components/app-router-headers.js")'
Caused by:
0: failed to invoke `/home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm` as js transform plugin at /home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm
1: failed to run Wasm plugin transform. Please ensure the version of `swc_core` used by the plugin is compatible with the host runtime. See the documentation for compatibility information. If you are an author of the plugin, please update `swc_core` to the compatible version.
Note that if you want to use the os features like filesystem, you need to use `wasi`. Wasm itself does not have concept of filesystem.
https://swc.rs/docs/plugin/selecting-swc-core
See https://plugins.swc.rs/versions/from-plugin-runner/4.0.0 for the list of the compatible versions.
Build info:
Date: 2024-12-10
Timestamp: 2024-12-10T12:15:58.989047756Z
Version info:
swc_plugin_runner: 4.0.0
Dependencies: anyhow 1.0.94,codspeed-criterion-compat 2.7.2,criterion 0.5.1,enumset 1.1.5,futures 0.3.31,once_cell 1.20.2,parking_lot 0.12.3,serde 1.0.215,serde_json 1.0.133,swc_atoms 2.0.0,swc_common 4.0.1,swc_css_ast 4.0.1,swc_css_parser 4.0.0,swc_ecma_ast 4.0.1,swc_ecma_loader 4.0.0,swc_ecma_parser 5.0.0,swc_ecma_visit 4.0.1,swc_malloc 1.0.0,swc_plugin_proxy 4.0.0,testing 4.0.0,tokio 1.42.0,tracing 0.1.41,vergen 9.0.2,virtual-fs 0.16.0,wasmer 4.3.7,wasmer-cache 4.3.7,wasmer-compiler-cranelift 4.3.7,wasmer-wasix 0.27.0
2: RuntimeError: out of bounds memory access
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97e88)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97ec9)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x65904)
at rkyv::impls::alloc::boxed::<impl rkyv::Deserialize<alloc::boxed::Box<T>,D> for rkyv::boxed::ArchivedBox<<T as rkyv::ArchiveUnsized>::Archived>>::deserialize::hf8413527b975ae00 (typewind_swc.wasm[549]:0x7a2ed)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x66aff)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h1eee8166c4249036 (typewind_swc.wasm[151]:0x19967)
at __transform_plugin_process_impl (typewind_swc.wasm[150]:0x16b6f)
at __transform_plugin_process_impl.command_export (typewind_swc.wasm[1214]:0x176e7c)
Stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: <unknown>
24: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
25: worker
26: <unknown>
27: <unknown>
Backtrace: 0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
24: worker
25: <unknown>
26: <unknown>
---------------------------
Panic: panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-5.0.2/src/plugin.rs:169:14:
failed to invoke plugin: failed to invoke plugin on 'Some("/home/workspace/intro-site/node_modules/next/dist/shared/lib/segment.js")'
Caused by:
0: failed to invoke `/home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm` as js transform plugin at /home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm
1: failed to run Wasm plugin transform. Please ensure the version of `swc_core` used by the plugin is compatible with the host runtime. See the documentation for compatibility information. If you are an author of the plugin, please update `swc_core` to the compatible version.
Note that if you want to use the os features like filesystem, you need to use `wasi`. Wasm itself does not have concept of filesystem.
https://swc.rs/docs/plugin/selecting-swc-core
See https://plugins.swc.rs/versions/from-plugin-runner/4.0.0 for the list of the compatible versions.
Build info:
Date: 2024-12-10
Timestamp: 2024-12-10T12:15:58.989047756Z
Version info:
swc_plugin_runner: 4.0.0
Dependencies: anyhow 1.0.94,codspeed-criterion-compat 2.7.2,criterion 0.5.1,enumset 1.1.5,futures 0.3.31,once_cell 1.20.2,parking_lot 0.12.3,serde 1.0.215,serde_json 1.0.133,swc_atoms 2.0.0,swc_common 4.0.1,swc_css_ast 4.0.1,swc_css_parser 4.0.0,swc_ecma_ast 4.0.1,swc_ecma_loader 4.0.0,swc_ecma_parser 5.0.0,swc_ecma_visit 4.0.1,swc_malloc 1.0.0,swc_plugin_proxy 4.0.0,testing 4.0.0,tokio 1.42.0,tracing 0.1.41,vergen 9.0.2,virtual-fs 0.16.0,wasmer 4.3.7,wasmer-cache 4.3.7,wasmer-compiler-cranelift 4.3.7,wasmer-wasix 0.27.0
2: RuntimeError: unreachable
at rust_panic (typewind_swc.wasm[390]:0x40888)
at std::panicking::rust_panic_with_hook::h50e657195af0239c (typewind_swc.wasm[284]:0x33edc)
at std::panicking::begin_panic_handler::{{closure}}::h0187e6969a85aab0 (typewind_swc.wasm[397]:0x40d87)
at std::sys_common::backtrace::__rust_end_short_backtrace::h575fb82445d56667 (typewind_swc.wasm[396]:0x40cee)
at rust_begin_unwind (typewind_swc.wasm[208]:0x271c5)
at core::panicking::panic_fmt::ha6764f2272b7fb95 (typewind_swc.wasm[98]:0xeb5c)
at core::result::unwrap_failed::had3752ac9f022e32 (typewind_swc.wasm[139]:0x1238a)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ad5a)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97ec9)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97ec9)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x65904)
at rkyv::impls::alloc::boxed::<impl rkyv::Deserialize<alloc::boxed::Box<T>,D> for rkyv::boxed::ArchivedBox<<T as rkyv::ArchiveUnsized>::Archived>>::deserialize::hf8413527b975ae00 (typewind_swc.wasm[549]:0x7a2ed)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x66aff)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h1eee8166c4249036 (typewind_swc.wasm[151]:0x19967)
at __transform_plugin_process_impl (typewind_swc.wasm[150]:0x16b6f)
at __transform_plugin_process_impl.command_export (typewind_swc.wasm[1214]:0x176e7c)
Stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: <unknown>
24: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
25: worker
26: <unknown>
27: <unknown>
Backtrace: 0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
24: worker
25: <unknown>
26: <unknown>
---------------------------
Panic: panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-5.0.2/src/plugin.rs:169:14:
failed to invoke plugin: failed to invoke plugin on 'Some("/home/workspace/intro-site/node_modules/next/dist/client/dev/amp-dev.js")'
Caused by:
0: failed to invoke `/home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm` as js transform plugin at /home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm
1: failed to run Wasm plugin transform. Please ensure the version of `swc_core` used by the plugin is compatible with the host runtime. See the documentation for compatibility information. If you are an author of the plugin, please update `swc_core` to the compatible version.
Note that if you want to use the os features like filesystem, you need to use `wasi`. Wasm itself does not have concept of filesystem.
https://swc.rs/docs/plugin/selecting-swc-core
See https://plugins.swc.rs/versions/from-plugin-runner/4.0.0 for the list of the compatible versions.
Build info:
Date: 2024-12-10
Timestamp: 2024-12-10T12:15:58.989047756Z
Version info:
swc_plugin_runner: 4.0.0
Dependencies: anyhow 1.0.94,codspeed-criterion-compat 2.7.2,criterion 0.5.1,enumset 1.1.5,futures 0.3.31,once_cell 1.20.2,parking_lot 0.12.3,serde 1.0.215,serde_json 1.0.133,swc_atoms 2.0.0,swc_common 4.0.1,swc_css_ast 4.0.1,swc_css_parser 4.0.0,swc_ecma_ast 4.0.1,swc_ecma_loader 4.0.0,swc_ecma_parser 5.0.0,swc_ecma_visit 4.0.1,swc_malloc 1.0.0,swc_plugin_proxy 4.0.0,testing 4.0.0,tokio 1.42.0,tracing 0.1.41,vergen 9.0.2,virtual-fs 0.16.0,wasmer 4.3.7,wasmer-cache 4.3.7,wasmer-compiler-cranelift 4.3.7,wasmer-wasix 0.27.0
2: RuntimeError: out of bounds memory access
at memcpy (typewind_swc.wasm[1196]:0x175edf)
at swc_atoms::<impl rkyv::Deserialize<swc_atoms::Atom,D> for rkyv::string::ArchivedString>::deserialize::h3b5d449b22395e70 (typewind_swc.wasm[130]:0x10a67)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h1eee8166c4249036 (typewind_swc.wasm[151]:0x1960f)
at __transform_plugin_process_impl (typewind_swc.wasm[150]:0x16b6f)
at __transform_plugin_process_impl.command_export (typewind_swc.wasm[1214]:0x176e7c)
Stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: <unknown>
24: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
25: worker
26: <unknown>
27: <unknown>
Backtrace: 0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
24: worker
25: <unknown>
26: <unknown>
---------------------------
Panic: panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-5.0.2/src/plugin.rs:169:14:
failed to invoke plugin: failed to invoke plugin on 'Some("/home/workspace/intro-site/node_modules/next/dist/pages/_app.js")'
Caused by:
0: failed to invoke `/home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm` as js transform plugin at /home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm
1: failed to run Wasm plugin transform. Please ensure the version of `swc_core` used by the plugin is compatible with the host runtime. See the documentation for compatibility information. If you are an author of the plugin, please update `swc_core` to the compatible version.
Note that if you want to use the os features like filesystem, you need to use `wasi`. Wasm itself does not have concept of filesystem.
https://swc.rs/docs/plugin/selecting-swc-core
See https://plugins.swc.rs/versions/from-plugin-runner/4.0.0 for the list of the compatible versions.
Build info:
Date: 2024-12-10
Timestamp: 2024-12-10T12:15:58.989047756Z
Version info:
swc_plugin_runner: 4.0.0
Dependencies: anyhow 1.0.94,codspeed-criterion-compat 2.7.2,criterion 0.5.1,enumset 1.1.5,futures 0.3.31,once_cell 1.20.2,parking_lot 0.12.3,serde 1.0.215,serde_json 1.0.133,swc_atoms 2.0.0,swc_common 4.0.1,swc_css_ast 4.0.1,swc_css_parser 4.0.0,swc_ecma_ast 4.0.1,swc_ecma_loader 4.0.0,swc_ecma_parser 5.0.0,swc_ecma_visit 4.0.1,swc_malloc 1.0.0,swc_plugin_proxy 4.0.0,testing 4.0.0,tokio 1.42.0,tracing 0.1.41,vergen 9.0.2,virtual-fs 0.16.0,wasmer 4.3.7,wasmer-cache 4.3.7,wasmer-compiler-cranelift 4.3.7,wasmer-wasix 0.27.0
2: RuntimeError: out of bounds memory access
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97ec4)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97ec9)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x65904)
at rkyv::impls::alloc::boxed::<impl rkyv::Deserialize<alloc::boxed::Box<T>,D> for rkyv::boxed::ArchivedBox<<T as rkyv::ArchiveUnsized>::Archived>>::deserialize::hf8413527b975ae00 (typewind_swc.wasm[549]:0x7a2ed)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x66aff)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h1eee8166c4249036 (typewind_swc.wasm[151]:0x19967)
at __transform_plugin_process_impl (typewind_swc.wasm[150]:0x16b6f)
at __transform_plugin_process_impl.command_export (typewind_swc.wasm[1214]:0x176e7c)
Stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: <unknown>
24: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
25: worker
26: <unknown>
27: <unknown>
Backtrace: 0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
24: worker
25: <unknown>
26: <unknown>
---------------------------
Panic: panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-5.0.2/src/plugin.rs:169:14:
failed to invoke plugin: failed to invoke plugin on 'Some("/home/workspace/intro-site/node_modules/next/dist/client/components/app-router-headers.js")'
Caused by:
0: failed to invoke `/home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm` as js transform plugin at /home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm
1: failed to run Wasm plugin transform. Please ensure the version of `swc_core` used by the plugin is compatible with the host runtime. See the documentation for compatibility information. If you are an author of the plugin, please update `swc_core` to the compatible version.
Note that if you want to use the os features like filesystem, you need to use `wasi`. Wasm itself does not have concept of filesystem.
https://swc.rs/docs/plugin/selecting-swc-core
See https://plugins.swc.rs/versions/from-plugin-runner/4.0.0 for the list of the compatible versions.
Build info:
Date: 2024-12-10
Timestamp: 2024-12-10T12:15:58.989047756Z
Version info:
swc_plugin_runner: 4.0.0
Dependencies: anyhow 1.0.94,codspeed-criterion-compat 2.7.2,criterion 0.5.1,enumset 1.1.5,futures 0.3.31,once_cell 1.20.2,parking_lot 0.12.3,serde 1.0.215,serde_json 1.0.133,swc_atoms 2.0.0,swc_common 4.0.1,swc_css_ast 4.0.1,swc_css_parser 4.0.0,swc_ecma_ast 4.0.1,swc_ecma_loader 4.0.0,swc_ecma_parser 5.0.0,swc_ecma_visit 4.0.1,swc_malloc 1.0.0,swc_plugin_proxy 4.0.0,testing 4.0.0,tokio 1.42.0,tracing 0.1.41,vergen 9.0.2,virtual-fs 0.16.0,wasmer 4.3.7,wasmer-cache 4.3.7,wasmer-compiler-cranelift 4.3.7,wasmer-wasix 0.27.0
2: RuntimeError: out of bounds memory access
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97e88)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97ec9)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x65904)
at rkyv::impls::alloc::boxed::<impl rkyv::Deserialize<alloc::boxed::Box<T>,D> for rkyv::boxed::ArchivedBox<<T as rkyv::ArchiveUnsized>::Archived>>::deserialize::hf8413527b975ae00 (typewind_swc.wasm[549]:0x7a2ed)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x66aff)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h1eee8166c4249036 (typewind_swc.wasm[151]:0x19967)
at __transform_plugin_process_impl (typewind_swc.wasm[150]:0x16b6f)
at __transform_plugin_process_impl.command_export (typewind_swc.wasm[1214]:0x176e7c)
Stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: <unknown>
24: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
25: worker
26: <unknown>
27: <unknown>
Backtrace: 0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
24: worker
25: <unknown>
26: <unknown>
---------------------------
Panic: panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-5.0.2/src/plugin.rs:169:14:
failed to invoke plugin: failed to invoke plugin on 'Some("/home/workspace/intro-site/node_modules/next/dist/shared/lib/segment.js")'
Caused by:
0: failed to invoke `/home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm` as js transform plugin at /home/workspace/intro-site/node_modules/typewind/dist/typewind_swc.wasm
1: failed to run Wasm plugin transform. Please ensure the version of `swc_core` used by the plugin is compatible with the host runtime. See the documentation for compatibility information. If you are an author of the plugin, please update `swc_core` to the compatible version.
Note that if you want to use the os features like filesystem, you need to use `wasi`. Wasm itself does not have concept of filesystem.
https://swc.rs/docs/plugin/selecting-swc-core
See https://plugins.swc.rs/versions/from-plugin-runner/4.0.0 for the list of the compatible versions.
Build info:
Date: 2024-12-10
Timestamp: 2024-12-10T12:15:58.989047756Z
Version info:
swc_plugin_runner: 4.0.0
Dependencies: anyhow 1.0.94,codspeed-criterion-compat 2.7.2,criterion 0.5.1,enumset 1.1.5,futures 0.3.31,once_cell 1.20.2,parking_lot 0.12.3,serde 1.0.215,serde_json 1.0.133,swc_atoms 2.0.0,swc_common 4.0.1,swc_css_ast 4.0.1,swc_css_parser 4.0.0,swc_ecma_ast 4.0.1,swc_ecma_loader 4.0.0,swc_ecma_parser 5.0.0,swc_ecma_visit 4.0.1,swc_malloc 1.0.0,swc_plugin_proxy 4.0.0,testing 4.0.0,tokio 1.42.0,tracing 0.1.41,vergen 9.0.2,virtual-fs 0.16.0,wasmer 4.3.7,wasmer-cache 4.3.7,wasmer-compiler-cranelift 4.3.7,wasmer-wasix 0.27.0
2: RuntimeError: unreachable
at rust_panic (typewind_swc.wasm[390]:0x40888)
at std::panicking::rust_panic_with_hook::h50e657195af0239c (typewind_swc.wasm[284]:0x33edc)
at std::panicking::begin_panic_handler::{{closure}}::h0187e6969a85aab0 (typewind_swc.wasm[397]:0x40d87)
at std::sys_common::backtrace::__rust_end_short_backtrace::h575fb82445d56667 (typewind_swc.wasm[396]:0x40cee)
at rust_begin_unwind (typewind_swc.wasm[208]:0x271c5)
at core::panicking::panic_fmt::ha6764f2272b7fb95 (typewind_swc.wasm[98]:0xeb5c)
at core::result::unwrap_failed::had3752ac9f022e32 (typewind_swc.wasm[139]:0x1238a)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ad5a)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97ec9)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963.26671 (typewind_swc.wasm[630]:0x97ec9)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::hbe2e1bf4bfbf8582 (typewind_swc.wasm[152]:0x1ac47)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x65904)
at rkyv::impls::alloc::boxed::<impl rkyv::Deserialize<alloc::boxed::Box<T>,D> for rkyv::boxed::ArchivedBox<<T as rkyv::ArchiveUnsized>::Archived>>::deserialize::hf8413527b975ae00 (typewind_swc.wasm[549]:0x7a2ed)
at swc_ecma_ast::stmt::_::<impl rkyv::Deserialize<swc_ecma_ast::stmt::Stmt,__D> for <swc_ecma_ast::stmt::Stmt as rkyv::Archive>::Archived>::deserialize::h76d6033cbe519963 (typewind_swc.wasm[492]:0x66aff)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h1eee8166c4249036 (typewind_swc.wasm[151]:0x19967)
at __transform_plugin_process_impl (typewind_swc.wasm[150]:0x16b6f)
at __transform_plugin_process_impl.command_export (typewind_swc.wasm[1214]:0x176e7c)
Stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: <unknown>
24: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
25: worker
26: <unknown>
27: <unknown>
Backtrace: 0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
19: <unknown>
20: <unknown>
21: <unknown>
22: <unknown>
23: _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
24: worker
25: <unknown>
26: <unknown>
// postcss.config.mjs
/** @type {import('postcss-load-config').Config} */
const config = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
export default config;
//tailwind.config.ts
import type { Config } from "tailwindcss";
import { typewindTransforms } from 'typewind/transform'
// Define animation keyframes
const animations = {
keyframes: {
"accordion-down": {
from: { height: "0" },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: "0" },
},
wave: {
"0%": { transform: "rotate(0deg)" },
"10%": { transform: "rotate(14deg)" },
"20%": { transform: "rotate(-8deg)" },
"30%": { transform: "rotate(14deg)" },
"40%": { transform: "rotate(-4deg)" },
"50%": { transform: "rotate(10deg)" },
"60%": { transform: "rotate(0deg)" },
"100%": { transform: "rotate(0deg)" },
},
"fade-in": {
"0%": { opacity: "0" },
"100%": { opacity: "1" },
},
"fade-out": {
"0%": { opacity: "1" },
"100%": { opacity: "0" },
},
"slide-in": {
"0%": { transform: "translateY(100%)" },
"100%": { transform: "translateY(0)" },
},
like: {
"0%": { transform: "scale(1.5)" },
"100%": { transform: "scale(1)" },
}
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
"wave": "wave 2.1s infinite",
"fade-in": "fade-in 0.2s ease-out",
"fade-out": "fade-out 0.2s ease-out",
"slide-in": "slide-in 0.2s ease-out",
"like": "like 0.85s forwards"
},
};
const config = {
content: {
files: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
transform: typewindTransforms
},
theme: {
extend: {
colors: {
background: "var(--background)",
foreground: "var(--foreground)",
primary: {
50: "var(--primary-50)",
100: "var(--primary-100)",
200: "var(--primary-200)",
300: "var(--primary-300)",
400: "var(--primary-400)",
500: "var(--primary-500)",
600: "var(--primary-600)",
700: "var(--primary-700)",
800: "var(--primary-800)",
900: "var(--primary-900)",
purple: "#c770f0",
},
secondary: {
DEFAULT: "#2d1950",
hover: "#a24dd386",
purple: {
light: "#934cce5e",
dark: "#8a49a8",
}
},
accent: {
DEFAULT: "var(--accent)",
foreground: "var(--accent-foreground)",
purple: "#be50f4",
},
muted: {
DEFAULT: "var(--muted)",
foreground: "var(--muted-foreground)",
},
card: {
DEFAULT: "var(--card)",
foreground: "var(--card-foreground)",
},
nav: {
bg: "#1b1a2ea9",
mobile: "#181a27",
},
scrollbar: {
track: "#2d1950",
thumb: "rgba(178, 121, 216, 0.959)",
hover: "rgba(222, 130, 235, 0.911)",
}
},
backgroundImage: {
'section-gradient': 'linear-gradient(to bottom left, rgba(17, 16, 16, 0.582), rgba(12, 8, 24, 0.904))',
'image-gradient': 'linear-gradient(to bottom left, rgba(17, 16, 16, 0.678), rgba(12, 10, 22, 0.863))',
'home-section': 'url("/home-bg.jpg")',
},
boxShadow: {
'nav': '0px 10px 10px 0px rgba(9, 5, 29, 0.171)',
'project': '0 4px 5px 3px rgba(119, 53, 136, 0.459)',
'project-hover': '0 4px 4px 5px rgba(129, 72, 144, 0.561)',
'tech': '4px 5px 4px 3px rgba(89, 4, 168, 0.137)',
'social': '0 0 15px #801f95',
},
fontSize: {
'nav': '1.2rem',
'nav-mobile': '1.4rem',
'heading': '2.4em',
'heading-name': '2.5em',
},
transitionProperty: {
'height': 'height',
'spacing': 'margin, padding',
},
transitionDuration: {
'400': '400ms',
},
transitionTimingFunction: {
'navbar': 'all 0.3s ease-out',
},
backdropFilter: {
'nav': 'blur(15px)',
},
...animations,
},
},
plugins: [
require('@tailwindcss/container-queries')
],
} satisfies Config;
export default config;
//next.config.ts
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
experimental: {
swcPlugins: [['typewind/swc', {}]],
},
};
export default nextConfig;