use-interval icon indicating copy to clipboard operation
use-interval copied to clipboard

Fix request: "module" entrypoint does not exist

Open damianobarbati opened this issue 4 years ago • 2 comments

Building with [email protected], it complains about dist/use-interval-ts.esm.js and it's actually right, the file does not exists.

🚨 Build failed.

@parcel/core: Failed to resolve '@use-it/interval' from './app/components/Match.js'

  /Users/damiano/Desktop/tt/app/components/Match.js:7:25
    6 | import useAxios from 'axios-hooks';
  > 7 | import useInterval from '@use-it/interval';
  >   |                         ^^^^^^^^^^^^^^^^^^
    8 | import AudioToggle from '../AudioToggle.js';
    9 | import Board from './Board.js';

@parcel/resolver-default: Could not load './dist/use-interval-ts.esm.js' from module '@use-it/interval' found in package.json#module

  /Users/damiano/Desktop/tt/node_modules/@use-it/interval/package.json:57:13
    56 |   ],
  > 57 |   "module": "dist/use-interval-ts.esm.js",
  >    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ './dist/use-interval-ts.esm.js' does not exist, did you mean './dist/interval.esm.js'?'
    58 |   "size-limit": [
    59 |     {

damianobarbati avatar Aug 12 '21 14:08 damianobarbati

Any news here, we ran in the same issue?

meandmax avatar Aug 23 '21 02:08 meandmax

This is addressed in #34, but @donavon hasn't yet chimed in or merged it.

wbinnssmith avatar Aug 24 '21 18:08 wbinnssmith