-
-
Save Pckool/526b619d46c76c6653f724e100bf89c5 to your computer and use it in GitHub Desktop.
This throws an error when importing to in pulsejs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CompanyData = { | |
// ... | |
locations: { | |
location1: { | |
// ... | |
rates: { | |
a: [475, 375, 375, 375, 375, 375, 525], | |
p: [575, 475, 475, 475, 475, 575, 725] | |
}, // for some reason, a nested object with arrays as its values throws an error in pulsejs | |
}, | |
// ... | |
} | |
} | |
export default CompanyData; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import CompanyData from './companyData.js'; | |
const pulse = new Pulse.Library({ | |
// ... | |
collections: { | |
company_data: { | |
data: { | |
...CompanyData, | |
} | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment