Need a special offer?Find out if your project fits.
+

Errors thrown when using version 2.9.56

Answered
Topi Kanninen asked on August 1, 2023

Hi,
We have encountered following errors when trying to upgrade to the latest Flexmonster-version. Same errors occur when trying to replicate it on a fresh react-project as below.
Commands used:

  1. npx create-react-app xxxx
  2. added to package.json: "flexmonster": "2.9.56"
  3. npm install
  4. npm start

With the following App.js:

import "./App.css";
import Flexmonster from "flexmonster";

function App() {
  return (
    <div className="App">
      <div id="pivotContainer">The component will appear here</div>
      <button
        onClick={() =>
          new Flexmonster({
            // container is the id of the <div> created in step 2.2
            container: "pivotContainer",
            componentFolder: "node_modules/flexmonster/",
            toolbar: true,
          })
        }
      >
        Make monster
      </button>
    </div>
  );
}

export default App;

After startup, it shows the following messages in console:
 
WARNING in ./node_modules/flexmonster/flexmonster.full.js 67464:4-36
Module not found: Error: Can't resolve 'worker_threads' in 'C:\Users\.....\node_modules\flexmonster'
 
WARNING in ./node_modules/flexmonster/flexmonster.full.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\Users\...\node_modules\flexmonster\jspdf.umd.min.js.map' file: Error: ENOENT: no such file or directory, open 'C:\Users\...\node_modules\flexmonster\jspdf.umd.min.js.map'
 
webpack compiled with 2 warnings
 
On previous versions (2.9.55 and lower) there are no similar errors

5 answers

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster August 1, 2023

Hello,

Thank you for reporting the issue.

We will take a look at the described behavior and provide a fix with our minor release with the ETA August 7th. Our team will notify you about the release.

You are welcome to contact us in case other questions arise.

Kind regards,
Nadia

Public
Topi Kanninen August 7, 2023

Hi,
After upgrading to the latest version 2.9.57 it still gives following error on startup:
WARNING in ./node_modules/flexmonster/flexmonster.full.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\test\node_modules\flexmonster\jspdf.umd.min.js.map' file: Error: ENOENT: no such file or directory, open 'C:\test\node_modules\flexmonster\jspdf.umd.min.js.map'
 
webpack compiled with 1 warning
 
 
This was tested with a fresh create-react-app following the steps above.

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster August 8, 2023

Hello Topi,

Thank you for getting back to us.

Our team will provide a fix for the warning with our minor release with the ETA August 21st. You will be notified about the release.

Feel free to contact us if other questions arise.

Kind regards,
Nadia

Public
Maksym Diachenko Maksym Diachenko Flexmonster August 22, 2023

Hello, Topi,

We are pleased to inform you that the "Failed to parse source map..." console warning was fixed. This is included in the 2.9.58 version of Flexmonster: https://www.flexmonster.com/release-notes/version-2-9-58/
You are welcome to update the component: https://www.flexmonster.com/doc/updating-to-the-latest-version/

Please let us know if the fix works fine for you.

Best regards,
Maksym

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster September 6, 2023

Hello,

Hope you are doing well.

We were wondering if you had a chance to update Flexmonster. Could you please confirm if the fix works well for you?

Looking forward to hearing your feedback.

Kind regards,
Nadia

Please login or Register to Submit Answer