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
Do you know why is getting me this compiling error?
I'm just using the code in the example
I run using "node -r esm" like in the example and it run perfectly
**`import { OaiPmh } from 'oai-pmh'
async function main () {
const oaiPmh = new OaiPmh('http://export.arxiv.org/oai2')
const identifierIterator = oaiPmh.listIdentifiers({
metadataPrefix: 'oai_dc',
from: '2015-01-01',
until: '2015-01-04'
})
for await (const identifier of identifierIterator) {
console.log(identifier)
}
}
main().catch(console.error)`**
but when i tried to use in normal code compilng an app it gets me the following error:
The text was updated successfully, but these errors were encountered:
Do you know why is getting me this compiling error?
I'm just using the code in the example
I run using "node -r esm" like in the example and it run perfectly
**`import { OaiPmh } from 'oai-pmh'
async function main () {
const oaiPmh = new OaiPmh('http://export.arxiv.org/oai2')
const identifierIterator = oaiPmh.listIdentifiers({
metadataPrefix: 'oai_dc',
from: '2015-01-01',
until: '2015-01-04'
})
for await (const identifier of identifierIterator) {
console.log(identifier)
}
}
main().catch(console.error)`**
but when i tried to use in normal code compilng an app it gets me the following error:
The text was updated successfully, but these errors were encountered: