You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compiler throws an error not recognising a valid mjs file
🔦 Context
I am trying to integrate with @Trulioo SDK which provides a unique way of installing their custom SDK. In the node modules (the worst place to throw an error) parcel complains that it does not recognise a .mjs file because it does not include the file type (.mjs)
💻 Code Sample
// How trulioo recommend to import their package constGlobalGatewayCapture=require('@trulioo/globalgateway-image-capture-sdk')
🌍 Your Environment
Software
Version(s)
Parcel
2.2.1
Node
16.13.2
npm
8.1.2
Operating System
Windows
The text was updated successfully, but these errors were encountered:
@MylesWardell this sounds like a case for yarn patch. With that you can basically have a patch references from your package.json that will automatically be applied for everyone running yarn install. Here I wrote about how to use a patch: DevExpress/testcafe#6624 (comment) and to generate it just do yarn patch <package>.
🐛 bug report
Parcel is not compiling .mjs files when the file type is not directly declared by the import
.babelrc
🤔 Expected Behavior
This should compile
😯 Current Behavior
The compiler throws an error not recognising a valid mjs file
🔦 Context
I am trying to integrate with @Trulioo SDK which provides a unique way of installing their custom SDK. In the node modules (the worst place to throw an error) parcel complains that it does not recognise a .mjs file because it does not include the file type (.mjs)
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: