Closed bdefore closed 4 years ago
i can confirm that the workaround mentioned in the article does work:
copy node_modules/steamapi
to your src
directory and then import that via relative path i.e.: const SteamAPI = require('./vendor/steamapi/src/SteamAPI')
still would be nice to have an es5 build in the package
es5 is old, stop using it 💢
@ShayBox CRA targets es5 (ie9+). it's not an unreasonable request since it would allow them to avoid ejecting
Good meme
thanks
the workaround no longer works with a project upgraded to newly released CRA2, which seems to not like module exports. specifically requiring a vendor directory of node-steamapi fails on: TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
from Achivement.js
Not really familiar with this myself. I'll leave it up to someone else to support this if they choose.
The link there explains what needs to be done in order to be compatible: http://bit.ly/2tRViJ9