[cause]: Error: Failed to compile due to Webpack errors.
Module not found: Error: Package path . is not exported from package C:\Users\...\node_modules\@splinetool\react-spline (see exports field in C:\Users\...\node_modules\@splinetool\react-spline\package.json)
The exports block in spline's package.json looks like this:
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Hello, I was trying to display Spline animation in my docusaurus project. It works locally, but build keeps failing. This is my implementation:
The error I am receiving:
The
exports
block in spline's package.json looks like this:What am I missing? I have been struggling for a few hours already, and I have no idea what else I can do.
Reproducible demo
No response
Steps to reproduce
N/A
Expected behavior
Display spline animation
Actual behavior
I cannot build my docusaurus project
Your environment
Self-service