You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the current behavior?
When trying to run the project (either through npm run build or npm run tutorial) without first compiling TypeScript files, the following error occurs:
Cannot find module '../build/linkedlist.js' from '/Users/arberavdullahu/jiff/lib/jiff-client.js'
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
First delete the build directory rm -rf build and then run npm run build
What is the expected behavior?
The build and tutorial commands should work without requiring manual TypeScript compilation. The TypeScript compilation step should be handled automatically as part of the build process.
What is the motivation / use case for changing the behavior?
This issue was introduced in PR Linkedlist/class #279. The current behavior requires users to manually run tsc -p lib/common/tsconfig.json before running any commands, which is not intuitive and can lead to confusion. This creates a poor developer experience and may prevent new users from getting started with the project.
Please tell us about your environment:
JIFF Version: 1.0.0/latest
Node Version: v23.7.0
Browser: all
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)
Suggested fix:
Add TypeScript compilation as a prerequisite step in the build and tutorial scripts
Update documentation to clarify the build process
Consider adding a pre-build hook to ensure TypeScript is always compiled before running other commands
I'm submitting a ...
What is the current behavior?
When trying to run the project (either through
npm run buildornpm run tutorial) without first compiling TypeScript files, the following error occurs:If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
First delete the build directory
rm -rf buildand then runnpm run buildWhat is the expected behavior?
The build and tutorial commands should work without requiring manual TypeScript compilation. The TypeScript compilation step should be handled automatically as part of the build process.
What is the motivation / use case for changing the behavior?
This issue was introduced in PR Linkedlist/class #279. The current behavior requires users to manually run
tsc -p lib/common/tsconfig.jsonbefore running any commands, which is not intuitive and can lead to confusion. This creates a poor developer experience and may prevent new users from getting started with the project.Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)
Suggested fix: