Skip to content

Instantly share code, notes, and snippets.

@jdeisenberg
Last active July 27, 2020 17:25
Show Gist options
  • Select an option

  • Save jdeisenberg/764e6ae6b9939ef8422d23960f73dcac to your computer and use it in GitHub Desktop.

Select an option

Save jdeisenberg/764e6ae6b9939ef8422d23960f73dcac to your computer and use it in GitHub Desktop.
bs-fetch "fetch not found"
let fetchData = () => {
Fetch.fetch("data.csv");
}
fetchData();
{
"name": "fetchtest",
"version": "0.1.0",
"sources": {
"dir" : "src",
"subdirs" : true
},
"package-specs": {
"module": "commonjs",
"in-source": true
},
"suffix": ".bs.js",
"bs-dependencies": [
"bs-fetch"
],
"warnings": {
"error" : "+101"
},
"namespace": true,
"refmt": 3
}
/var/www/example/fetchtest/src/Art.bs.js:9
fetch("data.csv");
^
ReferenceError: fetch is not defined
at Object.<anonymous> (/var/www/example/fetchtest/src/Art.bs.js:9:1)
at Module._compile (internal/modules/cjs/loader.js:1156:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment