In a Next.js React web application we can export functionality two ways: The two definitions have to be imported with two different syntaxes If we try to use the wrong import statement, we get the following error message: Make sure your import statement matches the definition format.
Category Archives: Not for home page
The top-level-await experiment is not enabled
When we try to call an async function with await from a .tsx file in a Next.js React TypeScript web application we get the error message: Module parse failed: The top-level-await experiment is not enabled (set experiments.topLevelAwait: true to enabled it) Error: The top-level-await experiment is not enabled (set experiments.topLevelAwait: true to enabled it) The …
Continue reading “The top-level-await experiment is not enabled”
Module not found: Can’t resolve ‘fs’
If you use Webpack version 5 or later you may encounter the error message Module not found: Can’t resolve ‘fs’ The cause is, that Webpack 5 has a breaking change, and the “fs” module is most likely not included anymore in the client-side code. To eliminate the issue, add the “browser” element to the package.js …
Creating favicon.ico on macOS
The favicon.ico file contains icons in four different sizes: To create a new favicon on a Mac, open an existing one in Preview and edit all four versions of it. Save the file, and the browser will select the appropriate size to display it on the tab.
Linking between pages in multi page Next.js React web applications
The Next.js React sample project only contains a single “Index” page. If your web site has multiple pages, you need to set up simple routing to call them from each other. In this example we will use the “Link” Next.js React component to call two pages from each other with the minimum number of instructions …
Continue reading “Linking between pages in multi page Next.js React web applications”
How to name individual street segments in Cities: Skylines
The Cities: Skylines AI automatically estimates the length of the street, and the name applies to the entire length. In real life after a turn, a corner, or an intersection the street’s name can change. To adjust the street segment where the name applies:
How to tow a trailer if a loading crane is installed in SnowRunner
If a loading crane is installed on the truck, it usually you cannot attach a trailer. You can tow the trailer with the winch, but you have to load the trailer yourself, as the automatic loading only works with attached trailers. At the pickup location At the destination
SnowRunner configuration
If you experience pauses in the video try to change the following video settings:
SnowRunner – Michigan, USA (spoiler)
Black River Location Has Needs Warehouse Bricks (1 unit)Concrete blocks (1 unit)Service spare parts (1 unit)Metal beams (2 unit) Task What From To Notes Contract What From To Notes Pipe Dream Heavy Fuel Tanker Semi-Trailer Bricks x2 (1 unit) Metal Beams x1 (2 units) Garage WarehouseWarehouse FactoryFactoryFactory Fuel trailer notes:When you arrive to the factory …
Cannot build underground in Cities: Skylines editor
In Cities: Skylines the Page Up and Down buttons set the elevation of the road and rail line. In the editor the Page Down does not take you below ground with negative numbers. To build underground in the Cities: Skylines editor subscribe to the Network Anarchy mod.