-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not find #2839
Comments
I guess they changed it for better integration with node or something... having the same problem... try using this: <script src="https://unpkg.com/[email protected]/dist/jspdf.min.js"></script> |
i fixed using, npm install jspdf... then import jsPDF from 'jspdf'; on vue btw |
Their current build doesn't produce a jspdf.min.js. Also might want to change your description to 404 Not Found. |
The file has been renamed to |
not use https://unpkg.com/jspdf@latest/dist/jspdf.min.js because you will be use the last version. use https://unpkg.com/[email protected]/dist/jspdf.min.js for don't have problems whit last version and others implements |
Same problem here, the new version cause the "not found jsPDF" problem. |
Either use 1.5.3 or upgrade to 2.0.0. Depending on "latest" in a production application is never a good idea. |
@HackbrettXXX
What is the Solution ? |
jspdf version: 2.0.0 node version: v14.4.0 yarn version: v1.22.4 import { jsPDF } from 'jspdf'; WARNING Compiled with 2 warnings 10:01:20 AM
warning in ./node_modules/jspdf/dist/jspdf.umd.min.js
Critical dependency: the request of a dependency is an expression
warning in ./node_modules/jspdf/dist/jspdf.umd.min.js
Critical dependency: the request of a dependency is an expression |
Please give more details: which build tool? How do you import jspdf, etc. |
@HackbrettXXX sample code:
|
A quick workaround to hide the error for now: My project uses create-react-app under the hood so I have to use a First, install
And add this rule to your Webpack config: const FilterWarningsPlugin = require('webpack-filter-warnings-plugin')
module.exports = {
// Your Webpack config...
// This prevents `jspdf` from throwing useless errors during the build process
config.plugins.push(
new FilterWarningsPlugin({
exclude: /Critical dependency: the request of a dependency is an expression/,
})
)
} The error is hidden, which I think is acceptable for end users right now. |
Closing in favor of #2846 |
https://unpkg.com/jspdf@latest/dist/jspdf.min.js
jsPDF not find jspdf.min.js in the last version
The text was updated successfully, but these errors were encountered: