-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parcel (the transformer?) does not recover after an error in an imported AS file #8
Labels
bug
Something isn't working
Comments
Currently, you do:
Instead, you need to
|
dipdowel
added a commit
that referenced
this issue
Jun 2, 2023
…n an imported AS file. +-------------------------------+ | This solution in its entirety | | was provided by @mischnic | +-------------------------------+ - Dependency versions bumped - The fix - Refactoring + code quality improvements
dipdowel
added a commit
that referenced
this issue
Jun 2, 2023
…n-imported-file_from-@mischnic Issue #8, Parcel (the transformer?) does not recover after an error in an imported AS file. +------------------------------------------------ | This solution in its entirety | was provided by @mischnic +------------------------------------------------ - Dependency versions bumped - The fix - Refactoring + code quality improvements
Hey @mischnic, thanks a lot for the suggested solution, it did the trick! Also, thank you so much for improving the quality of the code that surrounded your changes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Either Parcel or the transformer does not recover after an error occurs in an AssemblyScript file imported in
index.as.ts
Steps to reproduce
assemblyscript-parcel-template
yarn
ornpm install
yarn start
ornpm run start
http://localhost:1234/
in your browserassembly/index.as.ts
in your IDEconst result = add16bit(<i16>a, <i16>b);
insertconst t: i32;
const t: i32;
fromassembly/index.as.ts
and save the file.State at this point
Parcel should successfully recompile your AS code and the error message should disappear form the terminal and from the browser console.
assembly/helpers/add-16bit.ts
in your IDEreturn a + b;
insertconst t: i32;
const t: i32;
fromassembly/helpers/add-16bit.ts
and save the file.Expected result
Parcel should successfully recompile your AS code and the error message should disappear form the terminal and from the browser console.
Actual result
Parcel does not seem to detect the change in
assembly/helpers/add-16bit.ts
, the error message remains in the terminal and in the browser console. Please see the screenshot below:A work-around
If you then make any change in
index.as.ts
and save it, the project will be recompiled and reloaded as expected.The text was updated successfully, but these errors were encountered: