Skip to content
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

Getting Module not found: Error: Can't resolve 'velocityjs' with webpack #10020

Closed
Mister-Hope opened this issue Jan 6, 2024 · 0 comments
Closed

Comments

@Mister-Hope
Copy link

Mister-Hope commented Jan 6, 2024

Vue version

3.4.5

Link to minimal reproduction

https://github.com/vuepress-theme-hope/vuepress-theme-hope/actions/runs/7431497360/job/20222349242#step:7:174

The only notable change of this pr is bumping vue from 3.4.3 to 3.4.5

Steps to reproduce

Upgrading a esm based project with vue

What is expected?

No error.

I believe this is caused by #9977

The original file I used should be the esm one before this pr, and does have any codes that import 'velocityjs', while the cjs one has the following lines:


	/**
	 * velocity support.
	 */

	exports.velocityjs = fromStringRenderer('velocityjs');

	/**
	 * velocity string support.
	 */

	exports.velocityjs.render = function(str, options, cb) {
	  return promisify(cb, function(cb) {
	    var engine = requires.velocityjs || (requires.velocityjs = require('velocityjs'));
	    try {
	      options.locals = options;
	      cb(null, engine.render(str, options).trimLeft());
	    } catch (err) {
	      cb(err);
	    }
	  });
	};

What is actually happening?

Module not found: Error: Can't resolve 'velocityjs'

System Info

No response

Any additional comments?

No response

@Mister-Hope Mister-Hope changed the title Getting: Getting Module not found: Error: Can't resolve 'velocityjs' with webpack Jan 6, 2024
yyx990803 added a commit that referenced this issue Jan 8, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jan 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant