Arsalan Yaldram

Results 97 comments of Arsalan Yaldram

@AlexandreBonaventure thanks a lot for bringing this up here. I migrated our project to vite it took us almost 3 weeks fixing dependencies and errors but we hit this issue...

/ok-to-test sha=03b6861

I had to import marked using commonjs like so - `const { marked } = require("marked")`.

When I import `const { marked } = require('marked')` I get a runtime error saying - `marked is not a function`. I am unable to use version 4.0 and above...

@UziTech sir, using `const { marked } = require('marked')` returns `undefined`. Using `const marked = require('marked')` returns ` /static/media/marked.af4dd239aa577a4f71e4.cjs`.

@UziTech thanks a lot, i tried with a create-react-app and it is working as expected, I will check with webpack config. Thanks for your time.

@UziTech sir, don't you think the `commonjs` import should work I created a new create-react-app even there I get the output as mentioned above, but importing other libraries using `commonjs`...

Yes there is some issue with `create-react-app`. We have finally resolved this error by adding this babel helper `@babel/helper-create-regexp-features-plugin` as a devDependency.

@akanshSirohi @ravisojitra I see you are using `react-scripts 4.0.3` can you please try adding this in our package.json - `"resolutions": { "react-error-overlay": "6.0.9" },`. I think this will only work...

I did triage this issue, but given the fact that you are using `process.env` in your client for the `api url` you have installed react-error-overlay, I did upgrade the project...