Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #3254
Closed
Open
Issue created Oct 08, 2017 by Administrator@rootContributor

inflected stopped working with upgrade to 1.0.

Created by: 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): react-scripts@1.0.13

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 react-scripts@1.0.13
  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.)

Assignee
Assign to
Time tracking