After reviewing the code provided, there are a few possible reasons why it may not be functioning correctly.
1. Checking Package Import:
You can try modifying the initial import statements to the following:
import { Highway } from '@dogstudio/highway';
import { Fade } from './transition';
2. Verifying Package Installation:
Referencing the installation documentation (for Highway
), it recommends installing via NPM using the command below:
npm install --save-dev @dogstudio/highway
Following the installation, ensure you import Highway
as shown in the previous code snippet.
Please Note: In case of a "permissions error," consider using sudo
before npm
to grant necessary access privileges.
3. Initializing an NPM Project:
To set up an npm
project within your current directory, use npm init -y
. Omit the -y
option if you prefer making manual decisions throughout the setup process.
Best of luck with resolving the issue.