Giter VIP home page Giter VIP logo

Comments (4)

tomayac avatar tomayac commented on July 27, 2024 1

In #42, this was traced down to jestjs/jest#2550 (comment).

from browser-fs-access.

Amatewasu avatar Amatewasu commented on July 27, 2024

+1, it looks like it prevents me from doing some tests with Jest.

from browser-fs-access.

tomayac avatar tomayac commented on July 27, 2024

Just released v0.18.1 that should fix this.

from browser-fs-access.

Amatewasu avatar Amatewasu commented on July 27, 2024

Thanks a lot for your great reactivity! I upgraded the package to 0.18.1 (and checked the associated package.json file in my node_modules folder, the module type is here) but I still have the error when running tests with Jest (but it's running fine otherwise).
I am not sure it comes from browser-fs-access.

But here's my trace if it can help in any way:

XXXXXanonymizationXXXXX\node_modules\browser-fs-access\dist\index.js:2
    export{fileOpen}from"./file-open.mjs";export{directoryOpen}from"./directory-open.mjs";export{fileSave}from"./file-save.mjs";export{default as supported}from"./supported.mjs";
    ^^^^^^

    SyntaxError: Unexpected token 'export'

      1 | import { polygon, Properties } from '@turf/helpers';
      2 | import { union } from '@turf/turf';
    > 3 | import { directoryOpen, FileWithDirectoryHandle, supported as fsSupported } from 'browser-fs-access';
        | ^

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1350:14)

from browser-fs-access.

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.