Splunk Dev

@splunk/Create 7.0.3 broke linting

MrCheck
Explorer

Last week this worked fine, but since 7.0.3 of @splunk/create came out two days ago, linting doesn't work anymore.

npx @splunk/create
New app with component
yarn run setup

That still completes, but setup shows several warnings about things having unmet peer dependencies or incorrect peer dependencies.  But yarn run lint now throws an error and doesn't work:

"Error: Failed to load parser '@babel/eslint-parser' declared in '.eslintrc.js >> 
@splunk/eslint-config/browser-prettier >> ./browser.js >> ./base.js':
Cannot find module '@babel/eslint-parser'\n"

The release notes simply say this:

  • splunk_create.spec.conf is now correctly named splunk_create.conf.spec (SUI-5385).

But when I compare the package.json from a component created last week to one created today, I see several changes:

  • dependencies:
    • @splunk/react-ui changed from "^4.30.0" to "^4.43.0"
    • @splunk/themes changed from "^0.18.0" to "^0.23.0"
  • devDependencies:
    • @splunk/eslint-config changed from "^4.0.0" to "^5.0.0"
    • @splunk/splunk-utils changed from "^3.0.1" to "^3.2.0"
    • @splunk/stylelint-config changed from "^4.0.0" to "^5.0.0"
    • stylelint changed from "^13.0.0" to "^15.11.0"

There may be other things that changed as well, those are just the ones that jumped out at me. 

Anybody know how to fix this?  You can still do yarn run start:demo on the component and it runs, but the lint is broken.

Thanks!

0 Karma

MrCheck
Explorer

If I change all the versions back to what they were, then linting works again.  So at least I have a workaround.  Is it just me, or is this broken for anyone else?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...