Coder Social home page Coder Social logo

elements's People

Contributors

brambow avatar cartobin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

elements's Issues

Can't resolve '../../../config'

Describe the bug

All of yarn, yarn dev, yarn add @cartolab/elements fail.

To Reproduce

git clone https://github.com/cartolab-gis/elements
cd elements
yarn
// or yarn dev

Expected behavior

Project builds

Desktop (please complete the following information):

  • OS: macOS 10.15.2
  • Browser: n/a
  • Version: current master [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

Traceback:

> yarn add @cartolab/elements
yarn add v1.19.2
[1/4] ๐Ÿ”  Resolving packages...
[2/4] ๐Ÿšš  Fetching packages...
[3/4] ๐Ÿ”—  Linking dependencies...
warning " > [email protected]" has unmet peer dependency "webpack@>=2".
warning " > [email protected]" has unmet peer dependency "@storybook/[email protected]".
[4/4] ๐Ÿ”จ  Building fresh packages...

success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
โ””โ”€ @cartolab/[email protected]
info All dependencies
โ””โ”€ @cartolab/[email protected]
$ yarn build && yarn build-storybook
yarn run v1.19.2
$ yarn build-prep && yarn build-clean
$ del-cli dist && NODE_ENV=production rollup -c --context

./src/index.js โ†’ dist/index.js, dist/index.esm.js...
(!) Unresolved dependencies
https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency
theme-ui (imported by src/components/_common/ElementsProvider.js)
react-icons/md (imported by src/components/Draw/Draw.js, src/components/Measure/Measure.js, src/components/Select/Select.js)
@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw (imported by src/components/Measure/Measure.js, src/components/Select/Select.js)
[!] Error: Could not resolve '../../../config' from src/components/Search/util/handleSearchSubmit.js
Error: Could not resolve '../../../config' from src/components/Search/util/handleSearchSubmit.js
    at error (/Users/kyle/github/mapping/cartolab-gis-elements/node_modules/rollup/dist/rollup.js:5362:30)
    at ModuleLoader.handleMissingImports (/Users/kyle/github/mapping/cartolab-gis-elements/node_modules/rollup/dist/rollup.js:12200:17)
    at ModuleLoader.<anonymous> (/Users/kyle/github/mapping/cartolab-gis-elements/node_modules/rollup/dist/rollup.js:12091:30)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/kyle/github/mapping/cartolab-gis-elements/node_modules/rollup/dist/rollup.js:41:28)

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.