Skip to content
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

nsc-events_sprint_12_issue_561 #562

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

Bejarano03
Copy link
Contributor

Please fill out this description with the following:
Resolves 561
Description of what this pull request is for.
This pull request updates the typescript config file to follow recommendations from material ui.

Screenshot:

Screenshot 2024-10-07 at 2 18 21 AM

…ed the recommendations from the material ui docs
@Bejarano03 Bejarano03 added the dependencies Pull requests that update a dependency file label Oct 8, 2024
@Bejarano03 Bejarano03 self-assigned this Oct 8, 2024
@Bejarano03 Bejarano03 requested a review from a team as a code owner October 8, 2024 18:09
@Bejarano03 Bejarano03 requested review from cshimm and brinkbrink and removed request for a team October 8, 2024 18:09
@Bejarano03 Bejarano03 linked an issue Oct 8, 2024 that may be closed by this pull request
@Bejarano03 Bejarano03 enabled auto-merge (squash) October 8, 2024 18:13
@ken-ni
Copy link
Contributor

ken-ni commented Oct 11, 2024

Hello,
The changes look good, I see you implemented the minimum configuration guidelines from the MUI website. Since this is a change that affects GH actions workflow as stated in #561, how would one test this PR?

@Diego-Cano
Copy link

Great job working on the TypeScript config file! I ran all the unit tests after the changes, and everything works successfully. All six test suites, including creator.test.tsx, admin.test.tsx, signin.test.tsx, and signup.test.tsx, executed without any issues, confirming that the TypeScript settings are properly integrated. The tests took around 8.5 seconds in total.

Here’s a useful resource: TypeScript Compiler Options Explained.

Screenshot 2024-10-13 at 10 30 14 AM

Copy link

socket-security bot commented Oct 14, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher

View full report↗︎

@miqo1385
Copy link
Contributor

Screenshot 2024-10-14 at 11 05 47 AM

I'm just wondering if you see the same errors when you run npm run dev in your side?

made some changes with version lens
auto-merge was automatically disabled October 15, 2024 02:01

Pull request was closed

@BradleyCharles BradleyCharles enabled auto-merge (squash) October 15, 2024 02:04
update node to 20.x
Copy link
Contributor

@Asfand00 Asfand00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also encountering the same issue that @miqo1385 is seeing:
module-error-1
module-error-2

I did have a conflict that I needed to resolve first which was downgrading react and react-dom to 18.2 (accepting current change) which I believe you were using (correct me if wrong). Not sure if this is the issue at hand or not. You may need to update this branch with main to see if that resolves the issue since its been a while at it says at the bottom.

Otherwise try this:

you can try to remove the import statements and simply specify the actual path in the src attribute for the Image components used by next/image. (have to go through each import for that in each file and correct them)

example:
<Image src="/images/google_play.png" alt="Google Play" width={100} height={100} />

I think you have to omit the public/ part because Next.js doesn't recognize the public folder as a module.

On a side note: I was also encountering some css warnings here in these images for the css files:
module-error-3
module-error-4

don't know if those were just on my end or not but thought it was worth mentioning.

not sure I should approve this just yet until these issues are addressed or clarified because it could still just be a small issue on our ends.

package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@bennettsf bennettsf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything seems to work properly with these changes, would you be willing to explain what these changes are doing?

My understanding is that for rules such as "noImplicitAny": true,, it will show an error if a type for a variable (such as a function parameter) isn't explicit in the code?

Copy link
Contributor

@Asfand00 Asfand00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, I tested your branch and only found a minor issue with your package-lock.json file involving syntax errors:
nsc-events-561-package lock-issue

Im wondering if you see the same issues, if not its probably on my end then.

Regardless I think you should update this branch with main (that can probably fix the issue) and there's also an issue with the CI/CD with one of the checks not going through I believe @JesseCaddell has solved the issue so I think updating the branch with main could potentially solve the issue as well (correct me if I'm wrong), or I think you have to make another PR for the check to trigger. Once you update your branch with main ill approve this PR, thanks for the work. @Bejarano03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Update TypeScript Config File for Compiler
8 participants