question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Good First Issues]: Fix CommonJS dependency warnings

See original GitHub issue

Description

When running the frontend project with npm run start, the following warnings are displayed:

image

Before attempting to resolve this issue, I would recommend first reviewing https://web.dev/commonjs-larger-bundles/.

Scope

  • Service: UI

Setup dev environment

Please read the doc to set up your development environment.

Deadline

We usually give 2 weeks for a feature request, which means you have 2 weeks to implement the feature starting from the day it is assigned to you. If you have any difficulties, please contact us in Slack.

How to implement

  1. Fork the FeatBit repository.
  2. Create a branch issues-{issues number}
  3. Implement the task based on Description and Scope mentioned above.
  4. Submit your PR

If the feature is UI related, make sure you complete the following tasks before submit your PR:

  • merge featbit main branch into your working branch
  • run npm run i18n
  • commit messages.xlf & messages.zh.xlf file changes (if any)

Contribution points

Each contribution counts a certain number of points, depending on its difficulty. Contributors earn the appropriate points when the work is merged. Contribution points are used to describe the contributions that contributors have made. They can also be used to receive rewards for community events. You can view the current community submissions on a public google sheet.

Points: 12

How to claim to solve the issue

If you want to implement this function, please leave a comment in this issue like:

I’d like to implement this function, please assign this issue to me.

Issue Analytics

  • State:open
  • Created 4 months ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
deleteLatercommented, Jul 12, 2023

Thanks @yashchaddha, I’ve assigned this issue to you ☘️

1reaction
deleteLatercommented, May 19, 2023

Hi @defqd 👋

I recommend that you separate the solution into multiple PRs, one for each of the following:

  • lodash
  • momentjs
  • prismjs

This will make it easier for us to focus on each change individually, and it will also make it easier to merge the changes once they have been reviewed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading to Angular 10 - Fix CommonJS or AMD ...
I am facing the same issue for map operator as well - It says WARNING in ..\node_modules\rxjs\operators\map.js depends on rxjs-compat/operators/ ...
Read more >
CommonJS or AMD dependencies warnings with absolute ...
I find this warning missleading. According to MDN the module path can be relative or absolute. At least the warning should be different...
Read more >
How to fix nasty circular dependency issues once and for ...
Although there are many strategies and best practices on how to avoid circular dependencies. There is very little on how to fix them...
Read more >
Node Modules at War: Why CommonJS and ES ... - Code Red
In the first phase, it parses the script to detect calls to import and export without running the imported script. In the parsing...
Read more >
Handling 3rd-party JavaScript with Rollup
There are two ways of handling this with Rollup, as described by the troubleshooting link from the warning. Unfortunately, both Rollup and React ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found