dosubot[bot] commented on issue #38118:
URL: https://github.com/apache/superset/issues/38118#issuecomment-3932367908

   <!-- Answer -->
   This issue was addressed in [PR 
#37220](https://github.com/apache/superset/pull/37220) (merged Feb 9, 2026), 
which fixed ESM import resolution issues with geostyler modules by adding a 
webpack configuration rule.
   
   Since you pulled code from Feb 19, you should already have this fix. Try 
these steps:
   
   1. **Clean your node_modules completely:**
      ```bash
      cd superset-frontend
      rm -rf node_modules package-lock.json
      npm install
      npm run build-dev
      ```
   
   2. If the issue persists, verify your `webpack.config.js` includes this rule:
      ```javascript
      {
        test: /node_modules\/(geostyler-style|geostyler-qgis-parser)\/.*\.js$/,
        resolve: {
          fullySpecified: false,
        },
      }
      ```
   
   The errors you're seeing are related to ESM/CommonJS interoperability in 
webpack 5 with the geostyler packages. The webpack rule disables 
fully-specified imports for these packages, which resolves the "export not 
found" errors.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/2cfc639f-4e0f-4df0-9a0b-2945deda5a52?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/2cfc639f-4e0f-4df0-9a0b-2945deda5a52?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/2cfc639f-4e0f-4df0-9a0b-2945deda5a52?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/2cfc639f-4e0f-4df0-9a0b-2945deda5a52?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/2cfc639f-4e0f-4df0-9a0b-2945deda5a52?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/2cfc639f-4e0f-4df0-9a0b-2945deda5a52?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/2cfc639f-4e0f-4df0-9a0b-2945deda5a52?feedback_type=other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20issue%20was%20addressed%20in%20%5BPR%20%2337220%5D%28https%3A//github.com/apache/superset/pull/37220%29%20%28merged%20Feb%209%2C%202026%29%2C%20which%20fixed%20ESM%20import%20resolution%20issues%20with%20geostyler%20modules%20by%20adding%20a%20webpack%20configuration%20rule.%0A%0ASince%20you%20pulled%20code%20from%20Feb%2019%2C%20you%20should%20already%20have%20this%20fix.%20Try%20these%20steps%3A%0A%0A1.%20%2A%2AClean%20your%20node_modules%20completely%3A%2A%2A%0A%20%20%20%60%60%60bash%0A%20%20%20cd%20superset-frontend%0A%20%20%20rm%20-rf%20node_modules%20package-lock.json%0A%20%20%20npm%20install%0A%20%20%20npm%20run%20build-dev%0A%20%20%20%60%60%60%0A%0A2.%20If%20the%20issue%20persists%2C%20verify%20your%20%60webpack.config.js%60%20includ
 
es%20this%20rule%3A%0A%20%20%20%60%60%60javascript%0A%20%20%20%7B%0A%20%20%20%20%20test%3A%20/node_modules%5C/%28geostyler-style%7Cgeostyler-qgis-parser%29%5C/.%2A%5C.js%24/%2C%0A%20%20%20%20%20resolve%3A%20%7B%0A%20%20%20%20%20%20%20fullySpecified%3A%20false%2C%0A%20%20%20%20%20%7D%2C%0A%20%20%20%7D%0A%20%20%20%60%60%60%0A%0AThe%20errors%20you%27re%20seeing%20are%20related%20to%20ESM/CommonJS%20interoperability%20in%20webpack%205%20with%20the%20geostyler%20packages.%20The%20webpack%20rule%20disables%20fully-specified%20imports%20for%20these%20packages%2C%20which%20resolves%20the%20%22export%20not%20found%22%20errors.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/38118)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to