Skip to content

inflected stopped working with upgrade to 1.0. #3254

Closed
@timscott

Description

@timscott

Is this a bug report?

Unsure

Can you also reproduce the problem with npm 4.x?

Yes

Which terms did you search for in User Guide?

"inlfected"
"camelize is not defined"
"not defined"

Environment

  1. node -v: 8.5.0
  2. npm -v: 4.6.1
  3. yarn --version (if you use Yarn): 1.0.2
  4. npm ls react-scripts (if you haven’t ejected): [email protected]

Then, specify:

  1. Operating system: OSX
  2. Browser and version (if relevant):

Steps to Reproduce

  1. Create app with with v0.9.5
  2. yarn add inflected
  3. Add code like:
import {camelize} from 'inflected';
const foo = camelize('foo_bar');
  1. yarn start
  2. In browser cause code in step 3 to run.
  3. It works!
  4. yarn upgrade [email protected]
  5. Repeat steps 4-5.
  6. See error: Uncaught ReferenceError: camelize is not defined
  7. Change the code in step 3:
const camelize = require('inflected').camelize;
const foo = camelize('foo_bar');
  1. Repeat steps 3-4
  2. It works again!

Expected Behavior

No error.

Actual Behavior

Get error: Uncaught ReferenceError: camelize is not defined

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions