Module highlight.js has no exported member HLJSStatic & IModeBase - vue.js

my package.json looks like below,
dependencies:
"highlight.js": "^10.4.0",
"vue-highlight.js": "^3.1.0",
devDependencies:
"#types/highlight.js": "^10.1.0",
FYI, Its already working fine but i have tried upgrade(Bump updates) im getting this issue.
error in D:/paypayWorkspace/bump-update/developer-panel-web/client/node_modules/vue-highlight.js/dist/types/HLJSLang.d.ts
ERROR in D:/paypayWorkspace/bump-update/developer-panel-web/client/node_modules/vue-highlight.js/dist/types/HLJSLang.d.ts
1:10 Module '"highlight.js"' has no exported member 'HLJSStatic'.
> 1 | import { HLJSStatic, IModeBase } from 'highlight.js';
| ^
2 | /**
3 | * Highlight.js language
4 | */
error in D:/paypayWorkspace/bump-update/developer-panel-web/client/node_modules/vue-highlight.js/dist/types/HLJSLang.d.ts
ERROR in D:/paypayWorkspace/bump-update/developer-panel-web/client/node_modules/vue-highlight.js/dist/types/HLJSLang.d.ts
1:22 Module '"highlight.js"' has no exported member 'IModeBase'.
> 1 | import { HLJSStatic, IModeBase } from 'highlight.js';
| ^
2 | /**
3 | * Highlight.js language
4 | */
ERROR Build failed with errors.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
make: *** [dev-env] Error 1

I have not enough reputation to comment, but I think the answer is that highlight.js updated to version 10.XX.XX and there are some breaking changes so vue-highlight.js is not working anymore.
https://github.com/gluons/vue-highlight.js/issues/66
I have just now realized that you opened the issue there... but I think my answer will help those who land here.

Related

Sanity V3 Does the file exist?

I have error with sanity V3 For several days I have been trying to solve this problem!
[plugin:vite:import-analysis] Failed to resolve import "part:#sanity/base/schema-creator"
from "schemas\index.js". Does the file exist?
1 | import createSchema from 'part:#sanity/base/schema-creator';
| ^
2 | import schemaTypes from 'all:part:#sanity/base/schema-type';
3 |
how I can fix this ?

Intellij idea 2021.2 cannot render markdown table currently?

I use idea 2021.2 and corresponding markdown plugin. But the simple table cannot display in previous mode:
Why? I found somebody has related the problem to the JavaFx, however, I think it is occured in old version idea. I cannot find javafx render option in my version.
How to solve it?
You are using the wrong Markdown syntax.
The following code works fine (minimum three - for table header)
| Column 1 | Column 2 |
| :--- | :--- |
| AAA | BBB |

stuck at "unresolved import" Rust Embedded

I am new to Rust and I am working in embedded development. I am making a project to blink the led of the stmf3 board. But I am getting errors while using the command cargo build
This Repo contains my code and structure. I am really stuck here. Can someone please a way to solve this?
The error I am getting is:
error[E0433]: failed to resolve: unresolved import
--> src/main.rs:4:12
|
4 | use crate::config::initialization::{entry,mycrate,OutputSwitch,stm32f3xx_hal::prelude::*};
| ^^^^^^
| |
| unresolved import
| help: a similar path exists: `blink_stm32::config`
error[E0432]: unresolved imports `crate::config::initialization::entry`, `crate::config::initialization::mycrate`, `crate::config::initialization::OutputSwitch`
--> src/main.rs:4:37
|
4 | use crate::config::initialization::{entry,mycrate,OutputSwitch,stm32f3xx_hal::prelude::*};
| ^^^^^ ^^^^^^^ ^^^^^^^^^^^^
error: cannot find attribute `entry` in this scope
--> src/main.rs:6:3
|
6 | #[entry]
| ^^^^^
error[E0425]: cannot find function `mycrate` in this scope
--> src/main.rs:9:29
|
9 | let (leds, mut delay) = mycrate();
| ^^^^^^^ not found in this scope
|
help: consider importing this function
|
4 | use blink_stm32::config::initialization::mycrate;
|

Building flipper contract

I am following this tutorial https://substrate.dev/substrate-contracts-workshop/#/0/building-your-contract but am getting the following error. Does anyone know how to resolve this?
➜ flipper cargo +nightly contract build
[1/5] Building cargo project
Updating crates.io index
Compiling flipper v0.1.0 (/tmp/cargo-contract_dLtaWE)
error[E0277]: the trait bound `__ink_ConstructorDispatchEnum: parity_scale_codec::codec::WrapperTypeDecode` is not satisfied
--> /home/bill/flipper/lib.rs:5:1
|
5 | #[ink::contract]
| ^^^^^^^^^^^^^^^^ the trait `parity_scale_codec::codec::WrapperTypeDecode` is not implemented for `__ink_ConstructorDispatchEnum`
|
::: /home/bill/.cargo/registry/src/github.com-1ecc6299db9ec823/ink_env-3.0.0-rc3/src/api.rs:465:8
|
465 | T: scale::Decode,
| ------------- required by this bound in `decode_input`
|
= note: required because of the requirements on the impl of `parity_scale_codec::codec::Decode` for `__ink_ConstructorDispatchEnum`
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `__ink_MessageDispatchEnum: parity_scale_codec::codec::WrapperTypeDecode` is not satisfied
--> /home/bill/flipper/lib.rs:5:1
|
5 | #[ink::contract]
| ^^^^^^^^^^^^^^^^ the trait `parity_scale_codec::codec::WrapperTypeDecode` is not implemented for `__ink_MessageDispatchEnum`
|
::: /home/bill/.cargo/registry/src/github.com-1ecc6299db9ec823/ink_env-3.0.0-rc3/src/api.rs:465:8
|
465 | T: scale::Decode,
| ------------- required by this bound in `decode_input`
|
= note: required because of the requirements on the impl of `parity_scale_codec::codec::Decode` for `__ink_MessageDispatchEnum`
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0277`.
error: could not compile `flipper`
To learn more, run the command again with --verbose.
ERROR: `"/home/bill/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo" "build" "--target=wasm32-unknown-unknown" "-Zbuild-std" "-Zbuild-std-features=panic_immediate_abort" "--no-default-features" "--release" "--target-dir=/home/bill/flipper/target"` failed with exit code: Some(101)

Selenium IDE regex gives error "Threw an exception: missing ) after argument list"

In my test case I am trying to capture the dynamic state id from the url of current web page.
My Selenium IDE code is:
storeLocation | myLocation
echo | ${myLocation}
myLocation returns https://stage.abcx.com/ui/States/ManageTitle.ddx? action=view&stateid=76702
storeEval | re=/^sid/;re.exec(${myLocation}) | new
echo | ${new}
The error I keep getting is
[error] Threw an exception: missing ) after argument list
I have searched the net to find what's wrong with my code but could not figure out the issue.
Am new to Selenium and regex would appreciate any help.
Thanks!
You can try to replace
storeEval | re=/^sid/;re.exec(${myLocation}) | new
with:
storeEval | /\\d*$/.exec(storedVars['myLocation']) | new
new will contain all last digits from myLocation. Some info about the difference between ${x} and storedVars['x'] can be found here.