Git Product home page Git Product logo

next-common-files's People

Contributors

gunar avatar sailor-saturn avatar satazor avatar threequartersjohn avatar tiagodinis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

next-common-files's Issues

Use file-size-loader for glb / gltf files

Because glb and gltf files are compressible, the web server is unable to respond with Content-Length.

This is usually fine, except when you are loading these files and want to calculate the download progress. Because there's no Content-Length, we can't calculate the overall progress. To deal with this, we may use the file-size-loader for these file types instead.

We need to:

  • Change the glb and gltf loader to file-size-loader
  • Update tests and docs
  • Update jest config so that glb and gltf exports match what file-size-loader returns

Add support for JSON5

Also update our Jest config to do the same.

Once released, update our boilerplate to use the new version and remove the custom JSON5 loader integration in next.config.js.

Getting an error with NextJs 12

shimak@Shimaks-MBP get-it % npm install --save @moxy/next-common-files
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: get-it@undefined
npm ERR! Found: [email protected]
npm ERR! node_modules/next
npm ERR! next@"12.0.7" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer next@">=8 <=11" from @moxy/[email protected]
npm ERR! node_modules/@moxy/next-common-files
npm ERR! @moxy/next-common-files@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/shimak/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/shimak/.npm/_logs/2022-01-04T09_47_07_351Z-debug.log

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.