Git Product home page Git Product logo

Comments (3)

mmomtchev avatar mmomtchev commented on May 24, 2024

I have never used tailwindcss, but I have used rlayers in projects with both Next.js 13 app mode and Next.js 13 pages mode, so this is supported.
From what I see of your output:

  • The geotiff dependency on webworker comes from OpenLayers and it is not a huge problem, though you might report it to them - it is caused by a stub that is needed only when unit-testing in Node.js
  • I agree that your CSS probably needs special handling - that is probably overridden by withTranspile. Whether you transpile rlayers or not is up to you - rlayers comes with both ESM modules and a pre-transpiled version. If you switch to using the ESM modules, there should be a way to make it work with Next.js 13 without any special configuration. Or you can try to find whatever configuration tailwindcss adds to Next.js and add it manually to the config file.

from rlayers.

mmomtchev avatar mmomtchev commented on May 24, 2024

I have included a test for a setup without withTranspile: https://github.com/mmomtchev/rlayers-npm-tests/tree/main/next13-esm

The alias is needed because otherwise webpack will always select the CJS over the ES6 module because rlayers is not marked as ES6-only.

OpenLayers have decided to go ES6-only which by nw is probably the better solution, as almost no browser software uses anything else in 2023.

Maybe I will do the same in a future release.

from rlayers.

louisguitton avatar louisguitton commented on May 24, 2024

thank you sir πŸ™

from rlayers.

Related Issues (20)

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.