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.

I am unable to build my typescript web app with dataforge.

I get the following errors to do with the fs module:

ERROR in ./node_modules/data-forge/build/index.js
Module not found: Error: Can't resolve 'fs' in '/home/vagrant/kesm/apps/threescan-data-viewer/node_modules/data-forge/build'
 @ ./node_modules/data-forge/build/index.js 157:17-30 253:17-30 264:17-30
 @ ./node_modules/ts-loader!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/ComplexRoiSelector.vue
 @ ./src/ComplexRoiSelector.vue
 @ ./src/index.ts

ERROR in ./node_modules/data-forge/build/lib/dataframe.js
Module not found: Error: Can't resolve 'fs' in '/home/vagrant/kesm/apps/threescan-data-viewer/node_modules/data-forge/build/lib'
 @ ./node_modules/data-forge/build/lib/dataframe.js 4377:21-34 4401:17-30 4433:21-34 4457:17-30
 @ ./node_modules/data-forge/build/index.js
 @ ./node_modules/ts-loader!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/ComplexRoiSelector.vue
 @ ./src/ComplexRoiSelector.vue
 @ ./src/index.ts

My code literally just tries to import dataforge and instantiate a dataframe with no data.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ashleydaviscommented, Sep 11, 2018

I’ve started the process of removing ‘fs’ from Data-Forge.

This will take some time to complete, but already I have published a ‘beta’ version of Data-Forge with ‘fs’ removed.

Can you please try using the beta package of Data-Forge with your project instead of the regular package:

http://npmjs.com/package/data-forge-beta

Please let me know how that goes. If that works for you then I’ll know it’s worth completing the change.

0reactions
ashleydaviscommented, Nov 23, 2018

Data-Forge 1.3.0 is officially released. The file system functions have been extracted from the core API to the new file system module: https://github.com/data-forge/data-forge-fs

This should help Data-Forge be more usable in the browser and specifically with the latest AngularJS.

If you were using “data-forge-beta” please change over to the regular “data-forge”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to build solution after upgrading to the latest VS 2017 ...
The product failed to install the listed workloads and components due to one or more package failures. Incomplete workloads Azure development (Microsoft.
Read more >
Unable to build with XCode 14.0 · Issue #34673 - GitHub
XCode 14.0 is released since yesterday, and I have the following error while building a fresh app on a physical device: [...]/ios/Pods/Pods.
Read more >
Unable to build project for localization string extraction
The project can be successfully built and run. But when I export for localization, it shows this error message: Unable to build project...
Read more >
Unable to build Solution - Stack Overflow
Solution is in answer only. 1. To resolve this problem, either remove the reference "C:\Users..\accord-levenberg-source\Sources\Accord.
Read more >
Error: "C++ code builder is unable to build ... - Microsoft Learn
Error: "C++ code builder is unable to build C++ code. In order to build C++ code for Universal Windows Platform, you must have...
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