Skip to content

Instantly share code, notes, and snippets.

@Pckool
Created December 7, 2019 17:43
Show Gist options
  • Save Pckool/526b619d46c76c6653f724e100bf89c5 to your computer and use it in GitHub Desktop.
Save Pckool/526b619d46c76c6653f724e100bf89c5 to your computer and use it in GitHub Desktop.
This throws an error when importing to in pulsejs
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;
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