.tsx/typescript throws error "TS2307: Cannot find module 'History' only on Ubuntu? - macos

Facing a weird issue with a React/Typescript setup.
Running webpack -p on OSX/Windows compiles just fine with no errors from the TypeScript/TSX compiler at all.
However, on Ubuntu it will throw a TypeScript specific error, specifically:
ERROR in [at-loader] ./src/scenes/Component.tsx:5:23
TS2307: Cannot find module 'History'.
The specific line which throws an error is:
import {History} from "History";
package.json has both normal and #types package for History:
"#types/history": "4.6.0",
"history": "4.7.2",
And again, I can run webpack -p with the exact same code, same webpack configuration and same version on OSX without it throwing an error. Process is the same! However, on Ubuntu the build will fail with the above error.

The sinner was awesome-typescript-loader(at-loader). #3.2.x it threw this error; downgrading to #3.1.3 made it go away. This happened after upgrading packages apparently - but again, only seems to affect Ubuntu.

Related

Cypress Error after running open command...'error loading V8 startup snapshot file'. I'm not able to run cypress then

The exact error is:
[0328/091115.205:FATAL:v8_initializer.cc(447)] Error loading V8 startup snapshot file
Could you please help to fix and be able to use Cypress?
I tried (steps):
First: C:/inetpub/wwwroot/cypress-example>npm install
Second: C:/inetpub/wwwroot/cypress-example>npx cypress run
(both command using cmd.exe as administrator permission and I was running it in the file of the website example that I criated...C:/inetpub/wwwroot/cyrpress-teste)
exact error bellow:
Cypress failed to start.
This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies
Please refer to the error below for more details.
[0328/091115.205:FATAL:v8_initializer.cc(447)] Error loading V8 startup snapshot file
Platform: win32-x64 (10.0.19044)
Cypress Version: 9.5.2
I got the same error in cypress v9.5.4
Solved this by installing older version.
Just uninstall the current version, write "cypress": "^8.4.1" and run npm i

Composer BaseIO hasAuthentication compatibility error with Composer IOInterface hasAuthentication

Getting the following error message when calling composer install.
Fatal error: Declaration of Composer\IO\BaseIO::hasAuthentication($repositoryName) must be compatible with Composer\IO\IOInterface::hasAuthentication(string $repositoryName) in phar:///usr/local/psa/var/modules/composer/composer.phar/src/Composer/IO/BaseIO.php on line 20
This is occurring in our dev environment when we run the gitlab pipeline to build and deploy in our CI/CD pipeline. No changes have been made to this process that has been running flawlessly for years. My guess is that something has changed in the composer base code library in the last few days.
Anyone else having this same issue? Or does anyone have a clue on how to fix this issue?

go get fyne/io/driver/gl#v1.0.1 unrecognized import path

Trying to follow the installation guide here and most of the process is working. I'm having an issue with building it however.
When trying to build I'm getting this message:
C:...\gameboy.live>go build -o gbdotlive main.go
......\go\pkg\mod\fyne.io\fyne#v1.0.1\driver\gl\gl.go:20:2: missing go.sum entry for module providing package github.com/goki/freetype (imported by fyne.io/fyne/driver/gl); to add:
go get fyne.io/fyne/driver/gl#v1.0.1
Running the suggested command however raises another prompt:
C:...\gameboy.live>go get fyne.io/driver/gl#v1.0.1
go get fyne.io/driver/gl#v1.0.1: unrecognized import path "fyne.io/driver/gl": reading https://fyne.io/driver/gl?go-get=1: 404 Not Found
I've tried going for the version 1.4.3 driver too which raises a different error:
C:...\gameboy.live>go get fyne.io/fyne/gl#v1.4.3
go get: module fyne.io/fyne#v1.4.3 found, but does not contain package fyne.io/fyne/gl
Anybody familiar with this issue? FYI I'm on Windows and have MinGw installed already.
Just run go mod tidy before exec go build -o gbdotlive main.go.Have a try.

Getting error: no matching version `^2.0.0` found for package `codec`?

Question
I'm new to Substrate and going through Add a Pallet to Your Runtime. At first, running the command cargo check -p node-template-runtime gave me error
error: failed to parse manifest at `/Users/bashar/work/substrate/start/substrate-node-template/pallets/template/Cargo.toml`
Caused by:
feature `rename-dependency` is required
consider adding `cargo-features = ["rename-dependency"]` to the manifest
I added it and then I started getting this error:
error: no matching version `^2.0.0` found for package `codec`
location searched: registry `https://github.com/rust-lang/crates.io-index`
versions found: 0.0.0
required by package `frame-benchmarking-cli v3.0.0`
... which is depended on by `node-template v3.0.0 (/Users/bashar/work/substrate/start/substrate-node-template/node)`
I tried modifying the codec version to 2.0.1 with no luck. My setup
rustup 1.23.1
rustc 1.50.0
cargo 1.30.0
Any idea what I'm doing wrong?
UPDATE
I went back to the Create Your First Substrate Chain, which this tutorial is built on, started from scratch, which the Pallet tutorial is based on. And this time, after cloning the repository for first tutorial, cargo build --release failed with the same error feature rename-dependency is required.
This built fine the first time before I moved to the second tutorial. Which makes me think maybe a recent Mac update ruined something? I even tried uninstalling Rust and re-installing it, then installing a new template. Same thing

Docpad error: Error 15 (net::ERR_SOCKET_NOT_CONNECTED): Error unknown

I have been running on some problems since the last update (6.38.1). docpad seems to be broken on macosx the command "docpad run" or "docpad watch" returns the error (on the browser)
Error 15 (net::ERR_SOCKET_NOT_CONNECTED): Error unknown
when i try to access
http://localhost:9778
but "docpad server" works without problems, so maybe the error is the liverload module or other module for development... i'm not able to isolate this problem.
does anyone has the same problem and maybe a solution to share? i'm about to leave docpad because of this error :(

Resources