GithubHelp home page GithubHelp logo

prismicio-community / imgix-url-builder Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 1.0 1.12 MB

JavaScript/TypeScript Imgix URL builders for browsers and Node.js.

License: Apache License 2.0

JavaScript 0.77% TypeScript 99.23%

imgix-url-builder's People

Contributors

angeloashmore avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

imgix-url-builder's Issues

Metro Bundler for imgix-url-builder has encountered an errror

After installing the @prismicio/client and @prismicio/react packages on my react-native codebase, imgix-url-builder was also installed since it is one of the dependency of @prismicio.

But I'm getting the error when running the app.

error: bundling failed: Error: While trying to resolve module imgix-url-builder from file /.../node_modules/@prismicio/helpers/dist/index.js, the package /.../node_modules/imgix-url-builder/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (/.../node_modules/imgix-url-builder/dist/index.cjs. Indeed, none of these files exist:

  • /.../node_modules/imgix-url-builder/dist/index.cjs(.native|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)
  • /.../node_modules/imgix-url-builder/dist/index.cjs/index(.native|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)

imgix-url-builder not being resolved

Versions

  • imgix-url-builder: 0.0.2
  • node: v14.16.1

Reproduction

follow prismic steps for install dependencies on react.

Steps to reproduce

npm install @prismicio/react @prismicio/client @prismicio/helpers

then if you try to build and error is shown.

What is expected?

A successful build.

What is actually happening?

getting this error:
```While trying to resolve module imgix-url-builder from file `/Path/to/project/node_modules/@prismicio/helpers/dist/index.js`, the package `/Path/to/project/node_modules/imgix-url-builder/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`/Path/to/project/node_modules/imgix-url-builder/dist/index.cjs`. Indeed, none of these files exist:

  • /Path/to/project/node_modules/imgix-url-builder/dist/index.cjs(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json)
  • /Path/to/project/node_modules/imgix-url-builder/dist/index.cjs/index(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json)

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.