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

Build is broken #89

Closed
DexterStorey opened this issue Jan 20, 2024 · 13 comments
Closed

Build is broken #89

DexterStorey opened this issue Jan 20, 2024 · 13 comments
Assignees
Labels
bug Something isn't working urgent

Comments

@DexterStorey
Copy link
Contributor

The build errors in main with the following message:

Failed to compile.

./node_modules/lodash/_SetCache.js
Module not found: Can't resolve './_MapCache'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./node_modules/lodash/_baseUniq.js
./node_modules/lodash/uniqBy.js
./node_modules/recharts/es6/util/payload/getUniqPayload.js
./node_modules/recharts/es6/component/Legend.js
barrel_optimize?names=CartesianGrid,Dot,Legend,Line,LineChart,ResponsiveContainer,Tooltip,XAxis,YAxis!=!./node_modules/recharts/es6/index.js
./node_modules/@tremor/react/dist/components/chart-elements/LineChart/LineChart.js
barrel_optimize?names=LineChart!=!./node_modules/@tremor/react/dist/index.js
./lib/components/dashboard/Usage/Chart.tsx

...

@maige-app maige-app bot added bug Something isn't working urgent labels Jan 20, 2024
Copy link

maige-app bot commented Jan 20, 2024

This issue has been labeled as bug and urgent. @tedspare, could you please take a look at this UI-related build problem?

By Maige. How's my driving?

@DexterStorey
Copy link
Contributor Author

maige assign this to me plz

@DexterStorey
Copy link
Contributor Author

maige beta assign this to me plz

@DexterStorey
Copy link
Contributor Author

maige beta can you provide context about how to fix this?

Copy link

maige-app bot commented Jan 20, 2024

@DexterStorey, it seems like there's a module resolution issue with lodash in the build process. This could be due to a missing or incorrect import path in the dependency tree. To fix this, you can try the following steps:

  1. Ensure that all the required lodash sub-modules are correctly installed in node_modules. Running npm install or yarn install might resolve the issue if it's due to missing modules.
  2. Check the import statements in the files mentioned in the import trace to ensure they are correct and that the files exist.
  3. If the issue persists, consider clearing the node_modules folder and the package lock file (package-lock.json or yarn.lock) and reinstalling the dependencies.
  4. Look for any version mismatches in package.json that might cause this issue and align them if necessary.

If these steps do not resolve the problem, further investigation will be required to pinpoint the exact cause of the build failure.

By Maige. How's my driving?

@DexterStorey
Copy link
Contributor Author

maige beta open a new issue: Maige doesn't know we're using bun when answering questions

@DexterStorey
Copy link
Contributor Author

maige beta open a new issue: Maige successfully opens new issues but doesn't provide feedback to say that the issue has been opened, and doesn't reference that issue in the thread.

Attach these screenshot to the new issue:

Screenshot 2024-01-19 at 9 46 29 PM Screenshot 2024-01-19 at 9 45 53 PM

Copy link

maige-app bot commented Jan 20, 2024

@DexterStorey, a new issue has been opened to address the feedback and reference problem when Maige opens new issues. You can track the progress here: Issue #91.

By Maige. How's my driving?

@DexterStorey
Copy link
Contributor Author

DexterStorey commented Jan 20, 2024

barz dog

@tedspare
Copy link
Collaborator

Maige label this

2 similar comments
@tedspare
Copy link
Collaborator

Maige label this

@tedspare
Copy link
Collaborator

Maige label this

Copy link

maige-app bot commented Jan 22, 2024

I've labeled the issue as a 'bug'. @tedspare, since this seems related to the UI, I'm assigning it to you for further investigation.

By Maige. How's my driving?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working urgent
Projects
None yet
Development

No branches or pull requests

2 participants