Giter Club home page Giter Club logo

svelte-kit-mfn's Introduction

Issue

when using yarn with this framework with a dependency on openlayers, the static and node adaptors are not resolving the os references correctly.

Created this project as a quick demonstration of the build issue.

yarn dev : works fine (at least as far as I took it) yarn build:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/projects/ksgolding/playground/my-app/node_modules/ol/layer/Tile' imported from /projects/ksgolding/playground/my-app/.svelte-kit/output/server/entries/pages/index.svelte.js
Did you mean to import sgolding/playground/my-app/node_modules/ol/layer/Tile.js? # !!! MIGHT BE NOTHING, BUT NOTE sgolding/ instead of ksgolding !!!
    at finalizeResolution (internal/modules/esm/resolve.js:276:11)
    at moduleResolve (internal/modules/esm/resolve.js:699:10)

Reproduce

yarn install
yarn build

Issue can be reproduced with either the node or static-adaptor.

Environment

  • node v14.17.0
  • yarn 1.22.17
  • Redhat Linux 8
    • NAME="Red Hat Enterprise Linux"
    • VERSION="8.5 (Ootpa)"
    • ID="rhel"
    • ID_LIKE="fedora"
    • VERSION_ID="8.5"
    • PLATFORM_ID="platform:el8"
    • PRETTY_NAME="Red Hat Enterprise Linux 8.5 (Ootpa)"
    • ANSI_COLOR="0;31"
    • CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
    • HOME_URL="https://www.redhat.com/"
    • DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
    • BUG_REPORT_URL="https://bugzilla.redhat.com/"
    • REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
    • REDHAT_BUGZILLA_PRODUCT_VERSION=8.5
    • REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
    • REDHAT_SUPPORT_PRODUCT_VERSION="8.5"

svelte-kit-mfn's People

Watchers

 avatar

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.