Skip to content
Discussion options

You must be logged in to vote

Maybe you can try to config next.js to compile and use kepler.gl as a client side component:

webpack: (config, { isServer }) => {

    // Make @kepler.gl/* client-side only by aliasing them to a dummy module or false on the server side
    if (isServer) {
      config.resolve.alias = {
        ...config.resolve.alias,
        '@kepler.gl/components': false,
        '@kepler.gl/processors': false,
        '@kepler.gl/constants': false,
        '@kepler.gl/utils': false,
        '@kepler.gl/layers': false,
        '@kepler.gl/effects': false,
        '@kepler.gl/table': false,
        '@kepler.gl/deckgl-layers': false,
        '@kepler.gl/reducers': false,
        '@kepler.gl/styles': false,

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@yasataro-biz
Comment options

@igorDykhta
Comment options

@Spottybadrabbit
Comment options

@Sh3rlck
Comment options

@yasataro-biz
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by yasataro-biz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants