Hi to wix team, i trying to import dropbox package in my backend code but it seems doesn’t’ work I can see it in site structure sidebar below ‘npm-packages’.
could you help me.
regards.
What are you trying to do? What NPM library? What doesn’t work? What is your code? What, what, what…
It may depend on the package - I had no problems using xml2json in the xml-js library, but had to use the require syntax when I used the moment package:
var moment = require (‘moment’);
It shows up as an error in the IDE but still works. See what happens…
require being tagged as an error is a known issue. However, it works. This will hopefully be fixed soon.
I just tried loading moment-business but it didn’t work. Has anybody been successful with that library?
Please add your own issue into a new post instead of bumping up an old post.
Also, add any code in a code block as stated in the Forum Guidelines.
This is an old post and is being closed.