{"id":23347067,"url":"https://github.com/robintw/antipodes-webpack","last_synced_at":"2025-04-07T17:27:02.883Z","repository":{"id":137660229,"uuid":"128819930","full_name":"robintw/antipodes-webpack","owner":"robintw","description":null,"archived":false,"fork":false,"pushed_at":"2018-04-10T08:43:00.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T15:57:17.918Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robintw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-09T18:58:04.000Z","updated_at":"2018-04-10T08:43:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"090eb0cc-046f-49be-bee9-f319e80988ab","html_url":"https://github.com/robintw/antipodes-webpack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robintw%2Fantipodes-webpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robintw%2Fantipodes-webpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robintw%2Fantipodes-webpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robintw%2Fantipodes-webpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robintw","download_url":"https://codeload.github.com/robintw/antipodes-webpack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247696170,"owners_count":20980975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-21T07:17:39.182Z","updated_at":"2025-04-07T17:27:02.872Z","avatar_url":"https://github.com/robintw.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repo demonstrates the problem I'm having with webpack. My aim is to use the module turf (http://turfjs.org/) to do some geographic analysis in the browser.\n\nI started by following the webpack Getting Started guide (https://webpack.js.org/guides/getting-started/) and creating `src/index.js` and `dist/index.html`. I import `_` from `lodash` and use it to do a simple string join. This all works.\n\nI then try and extend this to do a simple demonstration using turf. In the turf getting started guide (http://turfjs.org/getting-started) it says that you can include individual turf modules in a webpack-based project. So, I installed `@turf/distance` and `@turf/helpers` and added some code using them to `index.js`. The relevant docs are at http://turfjs.org/docs#distance and http://turfjs.org/docs#point.\n\nWhen running `npx webpack` I get the following errors:\n\n```\nERROR in ./node_modules/@turf/invariant/index.mjs\n59:34-42 Can't import the named export 'isNumber' from non EcmaScript module (only default export is available)\n @ ./node_modules/@turf/invariant/index.mjs\n @ ./node_modules/@turf/distance/index.js\n @ ./src/index.js\n\nERROR in ./node_modules/@turf/invariant/index.mjs\n59:62-70 Can't import the named export 'isNumber' from non EcmaScript module (only default export is available)\n @ ./node_modules/@turf/invariant/index.mjs\n @ ./node_modules/@turf/distance/index.js\n @ ./src/index.js\n ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobintw%2Fantipodes-webpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobintw%2Fantipodes-webpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobintw%2Fantipodes-webpack/lists"}