node-xml2js icon indicating copy to clipboard operation
node-xml2js copied to clipboard

Doesnt Work With Nativescript 8+

Open shivampednekar-baxture opened this issue 4 years ago • 6 comments

Module not found: Error: Can't resolve 'string_decoder' in '/Users/admin/Desktop/SHivam/mfm-sequential-delegate/seq ver1/mfm/node_modules/sax/lib'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "string_decoder": require.resolve("string_decoder/") }' - install 'string_decoder' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "string_decoder": false }

shivampednekar-baxture avatar Nov 02 '21 10:11 shivampednekar-baxture

Getting the same issue!

basickarl avatar Dec 20 '21 21:12 basickarl

I don't know what NativeScript is but looking at the error message it looks like it explains how to fix the problem?

Leonidas-from-XIV avatar Dec 21 '21 00:12 Leonidas-from-XIV

Yea I was able to resolve my issue by changing to another library in the end!

basickarl avatar Dec 21 '21 00:12 basickarl

That's an extreme measure but if that works for you...

Leonidas-from-XIV avatar Dec 21 '21 00:12 Leonidas-from-XIV

Yea I was able to resolve my issue by changing to another library in the end!

Could you tell what library you used to solve this problem?

qwiz1 avatar Jan 05 '22 10:01 qwiz1